WordPress.org

Ready to get started?Download WordPress

Plugin Directory

BJ Lazy Load

Lazy loading makes your site load faster and saves bandwidth. Uses jQuery and degrades gracefully for non-js users. Works with both images and iframes

Version 0.7.1

  • Proper encoding of non-ASCII characters in filenames when using responsive or hiDPI images (thanks @testsiteoop)

Version 0.7.0

  • Added meta box to all public post types to exclude BJ Lazy Load for individual posts/pages
  • Placeholder image is replaced with a really short data-uri (thanks @jruizcantero)
  • Added a proper WordPress filter method for arbitrary HTML filtering with: apply_filters( 'bj_lazy_load_html', $html )
  • Updated scbFramework to release 58 (no more strict warnings in admin)
  • Updated jQuery.sonar to latest version (as of 2013-11-13)
  • Added POT file (Go translate!)
  • Added translation to Norwegian Bokmål (nb_NO)
  • Added translation to Russian (ru_RU) by Elvisrk

Version 0.6.10

  • Responsive and HiDPI images works with MultiSite subfolders
  • Lazy loading is disabled on Opera Mini
  • Removed leftin print_filters_for() function (sry)
  • User definable threshold

Version 0.6.9

  • Bugfix: Single quotes for the class attribute is now handled (thanks @kReEsTaL)
  • Bugfix: Removed strict error notice (thanks syndrael)

Version 0.6.8

  • Bugfix: sonar.js wouldn't load properly when SCRIPT_DEBUG was set to true (thanks @techawakening)

Version 0.6.7

  • Combined JS files for faster loading
  • Bugfix for when viewport is resized – now triggering scroll event (thanks @kReEsTaL)

Version 0.6.6

  • Option to disable BJ Lazy Load for MobilePress

Version 0.6.5

  • Iframe lazy loading is now compatible with Gravity Forms' ajax forms.

Version 0.6.4

  • Disable when viewing printable page from WP-Print

Version 0.6.3

  • Detects WPTouch Pro as well

Version 0.6.2

  • Bugfix: Remove notice of undefined constant when SCRIPT_DEBUG isn't defined

Version 0.6.1

  • Bugfix: The infinite_scroll option wasn't initialized

Version 0.6.0

  • Optionally serving size optimized images for responsive design/adaptive layout
  • Optionally serving hiDPI images (retina support)
  • Option to disable BJ Lazy Load for WPTouch
  • Fixed issue with infinite scroll (must be enabled on options screen)
  • Upgraded jQuery.sonar to latest version

Version 0.5.4

  • Possible to skip lazy loading of certain images with specified classnames
  • Made the placeholder image override an option setting in wp-admin

Version 0.5.3

  • Added filter: bj_lazy_load_placeholder_url - override placeholder image (should be an option setting in the future)

Version 0.5.2

  • Added the fadeIn effect

Version 0.5.1

  • Lowered jQuery version dependency
  • New options: More granular control on what content to lazy load

Version 0.5.0

  • Complete rewrite
  • Replaced JAIL with jQuery.sonar to accomodate for iframe lazy loading
  • Added lazy loading for iframes
  • The manual filter code now works as it should, lazy loading all images instead of just the first.

Version 0.4.0

  • Upgraded JAIL to version 0.9.9, fixing some bugs. Note: data-href is now renamed data-src.

Version 0.3.3

  • Replaced an anonymous function call causing error in PHP < 5.3

Version 0.3.2

  • The wp_head caller selector was added to the option page

Version 0.3.1

  • Also with d.sturm's fix (thanks)

Version 0.3.0

  • Added BJLL::filter() so you can lazy load any images in your theme
  • Added the option to load in wp_head() instead (suboptimal, but some themes actually don't call wp_footer())
  • Correctly removed the lazy loader from feeds

Version 0.2.5

  • Fixes Unicode-issue with filenames

Version 0.2.4

  • Now (more) compliant to the WP coding style guidelines.
  • All strings localized
  • Translations get loaded
  • POT file included (send me your translations)
  • Norwegian translation included

Version 0.2.3

  • Now using DOMDocument for better HTML parsing. Old regexp parsing as fallback if DOMDocument is not available.

Version 0.2.2

  • Added CSS. No longer need for hiding .no-js .lazy
  • Added options whether to include JS and CSS or not

Version 0.2.1

  • Added options: Timeout, effect, speed, event, offset, ignoreHiddenImages
  • Combining the two JS files for faster loading
  • Renamed the plugin file from bj-lazyload.php to bj-lazy-load.php to better fit with the plugin name

Version 0.2

  • Added options panel in admin
  • Added option to lazy load post thumbnails
  • Skipped the lazy loading in feeds

Version 0.1

  • Released 2011-12-05
  • It works (or at least it does for me)

Requires: 3.5 or higher
Last Updated: 2014-1-20
Downloads: 81,015

Ratings

4 stars
4.6 out of 5 stars

Support

0 of 8 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 0,1,0
100,1,1 100,1,1 100,1,1 100,2,2
100,1,1 0,1,0 0,1,0
100,2,2
100,1,1
100,1,1 50,2,1 100,1,1 83,6,5
75,4,3
100,1,1 100,1,1 67,3,2 50,2,1
100,2,2 67,3,2 67,6,4 100,1,1 100,1,1 100,3,3
0,1,0
83,6,5 100,1,1 100,1,1
100,2,2 100,1,1
0,1,0 100,1,1
100,3,3
100,2,2 100,1,1 0,1,0
100,2,2