WordPress.org

Ready to get started?Download WordPress

Forums

BJ Lazy Load
[resolved] No images loading (6 posts)

  1. vronster
    Member
    Posted 2 years ago #

    Hi and thank you for the Plugin.

    I have tried lots of different solutions but I am unable to see my images when BJ Lazyload plugin is activated. I have added wp-footer, checked the settings etc and can see it being applied in the source but no images ever load.

    Example code:
    <img width="270" height="165" title="ultra-book-th" alt="ultra-book-th" class="lazy lazy-hidden attachment-post-thumbnail wp-post-image" data-lazy-src="http://www.mysite.com /wp-content/uploads/portfolio/ultra-book-th.jpg" data-lazy-type="image" src="http://www.mysite.com /wp-content/plugins/bj-lazy-load/img/placeholder.gif">

    I'd really love for this plugin to work. Is there something I have forgotten to set?

    These are the only scripts on the page. Could something be conflicting?

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type='text/javascript' src=' /wp-content/themes/mytheme-theme/scripts/jflickrfeed.min.js'></script>
    <script type='text/javascript' src=' /wp-content/themes/mytheme-theme/scripts/setup.js'></script>
    <script type='text/javascript' src=' /wp-content/themes/mytheme-theme/scripts/l10n.js'></script>

    Any help would be much appreciated. Thank you in advance.

    http://wordpress.org/extend/plugins/bj-lazy-load/

  2. Bjørn Johansen
    Member
    Plugin Author

    Posted 2 years ago #

    You are running a very old version of jQuery (version 1.4.2). BJ Lazy Load requires at least version 1.4.3 (might also be higher, but this is the highest version number dependency I found).

    As a general tip, you should always run the same jQuery version as your WordPress installation provides. You may well load it from Google's CDN, but if you run an older version of jQuery some of your plugins might break (as in this case).

  3. vronster
    Member
    Posted 2 years ago #

    Hi Bjorn. Brilliant the portfolio images lazyload perfectly now- Thank you.

    Only one problem- the pages with a Flickr feed on have issues: The Flickr feed now does not display any images, and the lazyload images on the same page as Flickr feed do not load images. Could there be a conflict somewhere? I am using jflickrfeed.min.js.
    http://www.vronster.com/about/
    Any thoughts would be so much appreciated.

    Many thanks in advance.

  4. Bjørn Johansen
    Member
    Plugin Author

    Posted 2 years ago #

    Your page throws the following error:

    Uncaught TypeError: Object [object Object] has no method 'jflickrfeed'

    Javascript parsing stops after an uncaught error is thrown.

    My guess is that jflickrfeed isn't compatible with your updated version of jQuery. See if you can find an updated version.

    BTW: You are currently loading two versions of jQuery. Both 1.8 from the Google CDN and 1.7.2 from your WordPress installation.

  5. vronster
    Member
    Posted 2 years ago #

    Hi Bjorn.
    Thank you so much for your tips. As you can see I am new to WordPress and jQuery so probably making silly mistakes.
    I will look into your solutions, many thanks again

  6. vronster
    Member
    Posted 2 years ago #

    Thanks gain for your help. I put in different flickr code (widget this time)and all works brilliantly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic