Title: [REQ] Load JS and CSS only when needed
Last modified: August 21, 2016

---

# [REQ] Load JS and CSS only when needed

 *  [Daedalon](https://wordpress.org/support/users/daedalon/)
 * (@daedalon)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/req-load-js-and-css-only-when-needed/)
 * Thank you Jeff for the great plugin!
 * [Google PageSpeed](http://developers.google.com/speed/pagespeed/insights/) 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](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.
 * [https://wordpress.org/plugins/theme-my-login/](https://wordpress.org/plugins/theme-my-login/)

The topic ‘[REQ] Load JS and CSS only when needed’ is closed to new replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Daedalon](https://wordpress.org/support/users/daedalon/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/req-load-js-and-css-only-when-needed/)
 * Status: not resolved