Support » Plugin: BJ Lazy Load » Only Loads Images if I'm Logged In

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Bjørn Johansen


    You’re not degistrating jQuery, are you?

    If you provide me with an URL to your site, I can take a look.

    Due to the error, the plugin is not activated at this time.

    But if you can tell anything from looking, my url is

    Plugin Author Bjørn Johansen


    You aren’t loading jQuery even though you have several script which relies on it. You are probably deregistrating it.

    When I am logged in and your plugin is activated then everything is loading fine.

    Also, when I am logged out and your plugin is deactivated everything is loading fine.

    But, when your plugin is activated and I am logged out the jQuery appears to be deregistered.

    So I don’t know what to do to correct this problem.


    Do you use save jQuery so it doesn’t conflict with mootools and other libraries?

    Plugin Author Bjørn Johansen


    I had a look at your site while the plugin was deactivated and you did not load jQuery at all.

    The plugin works fine in noConflict mode.

    Thank you for your reply.

    Now I understand what’s happening, but I’m not sure how to correct my problem.

    Your plugin is working fine for the admin when he is logged in, so jQuery does appear to be registering only when the admin is logged in, for some reason.

    What is the best way to force jQuery to load along side of mootools?

    Okay. The following worked for me:

    I added this code to the functions. php file:

    //jQuery - Use Google CDN instead of WP jQuery
    function my_scripts_method() {
    if (!is_admin()) {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery',     '');
        wp_enqueue_script( 'jquery' );
    add_action('wp_enqueue_scripts', 'my_scripts_method');

    Thanks again your your help

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Only Loads Images if I'm Logged In’ is closed to new replies.