Support » Plugin: Advanced lazy load » wp_enqueue_script called incorrectly

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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?

    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.