Defer parsing of javascript and Remove Unnecessary Javascript
Hi,
My site's pagespeed score is too low because of the numerous Javascripts that are being loaded. Not sure if all of these are really needed when only viewing an Ad.
Now I have 2 questions with respect to this.
1. Is it possible to remove unused Javascripts specially when viewing Ads? Maybe some of these Javascripts are being used when creating ads but not when viewing one?
2. How can I defer the loading of these Javascripts? Google Pagespeed suggests to defer parsing of these Javascripts
Below are the list of Javascripts that are being loaded when viewing an ad and it comprises more than half the size of the page.
370.9KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.
http://mysite.com/wp-includes/js/jqu....js?ver=1.11.3 (85.9KiB)
http://mysite.com/wp-content/plugins....6.0&ver=4.4.2 (83.4KiB)
http://mysite.com/wp-content/plugins....6.0&ver=4.4.2 (82.4KiB)
http://staticxx.facebook.com/connect...php?version=42 (28.8KiB of inline JavaScript)
https://staticxx.facebook.com/connec...php?version=42 (28.8KiB of inline JavaScript)
http://mysite.com/wp-content/themes/....js?ver=1.13.0 (18.7KiB)
http://mysite.com/wp-content/themes/...n.js?ver=2.0.3 (11.3KiB)
http://mysite.com/wp-content/themes/...n.js?ver=1.6.1 (9.7KiB)
http://mysite.com/wp-content/themes/...n.js?ver=3.3.3 (7.9KiB)
http://mysite.com/wp-includes/js/jqu...n.js?ver=1.2.1 (5.5KiB)
http://mysite.com/ads/toyota-vios-20...ransmission-2/ (3.8KiB of inline JavaScript)
http://mysite.com/wp-content/plugins...s.js?ver=4.4.2 (1.4KiB)
http://mysite.com/wp-content/themes/...nav.js?ver=1.1 (1.2KiB)
http://mysite.com/wp-content/themes/...p.js?ver=4.4.2 (1.1KiB)
http://mysite.com/wp-content/themes/...g.js?ver=4.4.2 (637B)
http://mysite.com/wp-content/themes/...s.js?ver=4.4.2 (403B)
Thanks in advance...