Title: wp_enqueue_script called incorrectly
Last modified: August 22, 2016

---

# wp_enqueue_script called incorrectly

 *  [Nic Ford](https://wordpress.org/support/users/nicdford/)
 * (@nicdford)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wp_enqueue_script-called-incorrectly-3/)
 * I am getting a TON of PHP Notices from the plugin. My error log for three days
   of logging on average was ~45mb and after disabling the plugin the log size dropped
   to about ~6.9mb for roughly 3 days of logging. I checked my theme wp_enqueue_scrips
   and nothing seems to be wrong on my end.
 * `[04-Nov-2014 17:47:45 UTC] PHP Notice: wp_enqueue_script was called <strong>
   incorrectly</strong>. Scripts and styles should not be registered or enqueued
   until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>,
   or <code>login_enqueue_scripts</code> hooks. Please see <a href="http://codex.
   wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information.(
   This message was added in version 3.3.) in /home/xxxxxxxx/public_html/wp-includes/
   functions.php on line 3245`
 * [https://wordpress.org/plugins/advanced-lazy-load/](https://wordpress.org/plugins/advanced-lazy-load/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [martiniboy](https://wordpress.org/support/users/martiniboy/)
 * (@martiniboy)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-called-incorrectly-3/#post-5583798)
 * I just installed the plugin to se if it will improve my page speed and also got
   lots of enqueue errors, deactivated everything and this was the cause?
 *  Thread Starter [Nic Ford](https://wordpress.org/support/users/nicdford/)
 * (@nicdford)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-called-incorrectly-3/#post-5583799)
 * Yeah, I ended up just removing the plugin, didn’t want to mess with fixing their
   code and having them patch it later.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp_enqueue_script called incorrectly’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-lazy-load_280e48.svg)
 * [Advanced lazy load](https://wordpress.org/plugins/advanced-lazy-load/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-lazy-load/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-lazy-load/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-lazy-load/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-lazy-load/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-lazy-load/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Nic Ford](https://wordpress.org/support/users/nicdford/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-called-incorrectly-3/#post-5583799)
 * Status: not resolved