[REQ] Load JS and CSS only when needed
-
Thank you Jeff for the great plugin!
Google PageSpeed warns of several render-blocking JavaScript files that are loaded by Theme My Load. These are loaded on every page even though they’re only used on very specific pages: registration, login, lost password and profile. Several CSS files are similarly loaded on every page even if the pages don’t use any TML components.
Affected files
- /wp-includes/js/wp-ajax-response.min.js?ver=3.8.3
- modules/ajax/js/ajax.js?ver=3.8.3
- http://www.google.com/recaptcha/api/js/recaptcha_ajax.js
- modules/recaptcha/js/recaptcha.js
- theme-my-login.css
- modules/ajax/css/ajax.css
These are likely not needed on 99% of the page loads.
- The topic ‘[REQ] Load JS and CSS only when needed’ is closed to new replies.