Title: BJ Lazy Load
Author: Bjørn Johansen
Published: <strong>06. prosinca 2011.</strong>
Last modified: 09. kolovoza 2017.

---

Pretraga dodataka

![](https://ps.w.org/bj-lazy-load/assets/banner-772x250.jpg?rev=1007134)

Dodatak **nije testiran s zadnje 3 glavna izdanja WordPressa**. Možda ga se više
ne održava ili pruža podršku i možda ima probleme sa kompatibilnošću s novijim inačicama
WordPressa.

![](https://ps.w.org/bj-lazy-load/assets/icon-256x256.png?rev=1007134)

# BJ Lazy Load

 Od [Bjørn Johansen](https://profiles.wordpress.org/bjornjohansen/)

[Preuzmi](https://downloads.wordpress.org/plugin/bj-lazy-load.zip)

 * [Detalji](https://hr.wordpress.org/plugins/bj-lazy-load/#description)
 * [Recenzije](https://hr.wordpress.org/plugins/bj-lazy-load/#reviews)
 *  [Instalacija](https://hr.wordpress.org/plugins/bj-lazy-load/#installation)
 * [Razvoj](https://hr.wordpress.org/plugins/bj-lazy-load/#developers)

 [Podrška](https://wordpress.org/support/plugin/bj-lazy-load/)

## Opis

Lazy loading makes your site load faster and saves bandwidth.

This plugin replaces all your post images, post thumbnails, gravatar images and 
content iframes with a placeholder and loads the content as it gets close to enter
the browser window when the visitor scrolls the page. Also works with text widgets.

Since it works with iframes, it also covers embedded videoes from YouTube, Vimeo
etc.

You can also lazy load other images and iframes in your theme, by using a simple
filter.

Non-javascript visitors gets the original element in noscript.

Compatible with the [RICG Responsive Images](https://wordpress.org/plugins/ricg-responsive-images/)
plugin for responsive images.

Please let me know if you have any issues. Fastest way to get a response is by Twitter:
https://twitter.com/bjornjohansen

#### Prijevodi

 * Russian (ru_RU) by Elvisrk
 * Hebrew (he_IL) by Imri Sagive
 * Polish (pl_PL) by Maciej Gryniuk
 * Norwegian Bokmål (nb_NO) by Bjørn Johansen

[Development happens at GitHub](https://github.com/bjornjohansen/bj-lazy-load). 
Pull requests are very welcome.

### Optional usage

If you have images output in custom templates or want to lazy load other images 
in your theme, you may pass the HTML through a filter:

    ```
    <?php
    $img_html = '<img src="myimage.jpg" alt="">';
    $img_html = apply_filters( 'bj_lazy_load_html', $img_html );
    echo $img_html;
    ?>
    ```

Note for developers: The filter has a priority of 10.

## Instalacija

 1. Download and unzip plugin
 2. Upload the ‘bj-lazy-load’ folder to the ‘/wp-content/plugins/’ directory,
 3. Aktivirajte dodatak kroz izbornik ‘Dodaci’ u WordPressu.

## ČPP

  Installation Instructions

 1. Download and unzip plugin
 2. Upload the ‘bj-lazy-load’ folder to the ‘/wp-content/plugins/’ directory,
 3. Aktivirajte dodatak kroz izbornik ‘Dodaci’ u WordPressu.

  Whoa, this plugin is using JavaScript. What about visitors without JS?

No worries. They get the original element in a noscript element. No Lazy Loading
for them, though.

  I’m using a CDN. Will this plugin interfere?

Lazy loading works just fine. The images will still load from your CDN.

  How can I verify that the plugin is working?

Check your HTML source or see the magic at work in Web Inspector, FireBug or similar.

## Recenzije

![](https://secure.gravatar.com/avatar/b265c58a10601a55115c9bf472b6569bb89d957d3346122466e8e5e1f98a7b02?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-37995/)󠁿

 [Royo Machinery USA](https://profiles.wordpress.org/royomachinery/) 21. studenoga
2023.

Doing exactly what I want.

![](https://secure.gravatar.com/avatar/db3539f876c9eaf5b907357a5f45e4a29326347145ca017198b2b900e19bed83?
s=60&d=retro&r=g)

### 󠀁[Still working](https://wordpress.org/support/topic/still-working-105/)󠁿

 [dvazquez260376](https://profiles.wordpress.org/dvazquez260376/) 23. prosinca 2020.

This plugins works great. For me is the best lazy load. Would be great to have a
recent update.

![](https://secure.gravatar.com/avatar/c299452d1e00d30793b6b0b4fdb82def139fe3608ce4863e6bcf534dd9e808bb?
s=60&d=retro&r=g)

### 󠀁[Хороший, но старый](https://wordpress.org/support/topic/%d1%85%d0%be%d1%80%d0%be%d1%88%d0%b8%d0%b9-%d0%bd%d0%be-%d1%81%d1%82%d0%b0%d1%80%d1%8b%d0%b9/)󠁿

 [xeon84](https://profiles.wordpress.org/xeon84/) 20. travnja 2020.

Часто использую на сайтах клиентов. Работает всё четко, но есть опасения, что присутствуют
дыры. Вердикт: если WP старый и новый плагин не работает – использовать этот!

![](https://secure.gravatar.com/avatar/dd3cff86ce7a39594c47e5a9a37bffd1e5faa657e6fc634c2a49a1d9b6fb97fa?
s=60&d=retro&r=g)

### 󠀁[Speed test is GRADE A with this plugin – Must Read!](https://wordpress.org/support/topic/this-is-a-great-plugging/)󠁿

 [Tony Fitzpatrick80](https://profiles.wordpress.org/adambrown82/) 17. travnja 2020.

Here is my speed test with GTmetrix. “With plugin” PageSpeed Score (94%) YSlow Score(
86%) Fully Loaded Time 1.3s Total Page Size 881KB Requests 18 “Without plugin” PageSpeed
Score (51%) YSlow Score (85%) Fully Loaded Time 3.5s Total Page Size 2.23MB Requests
38. My suggestion would be to set the threshold from 200 to 300 now my site is not
only far faster but also loads correctly. I also use plugins like… Far Future Expiration
Plugin Fast Velocity Minify Webcraftic Clearfy – WordPress optimization plugin To
get my speeds this high. The only thing I would suggest is an update from the developer
so its inline with the latest WordPress. However, on my latest WordPress, my website
still seems faultless with this outdated plugin.

![](https://secure.gravatar.com/avatar/8148d50fb4938d6f8a5a4baf0a528661df44faa8a17d2518a6fea3dc8da2c554?
s=60&d=retro&r=g)

### 󠀁[A Good Plugin](https://wordpress.org/support/topic/a-good-plugin-62/)󠁿

 [Eric Farmer](https://profiles.wordpress.org/androidgamingfox/) 23. studenoga 2019.

I downloaded this plugin because I wanted my images to load better for my blog readers.
It works great, and once setup, I can just let it do its thing.

![](https://secure.gravatar.com/avatar/222e30d13f09ad83c41ad130269cfeea24b264729b443d32d54f23b2bd743c6a?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-22577/)󠁿

 [Lalit Nagrath](https://profiles.wordpress.org/laliz/) 31. srpnja 2019.

Got my requests down from 130 to 44, great plugin, hope they keep this updated to
latest version of wordpress

 [ Pročitajte svih 89 recenzija ](https://wordpress.org/support/plugin/bj-lazy-load/reviews/)

## Suradnici i Programeri

“BJ Lazy Load” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.

Suradnici

 *   [ Bjørn Johansen ](https://profiles.wordpress.org/bjornjohansen/)
 *   [ arontornberg ](https://profiles.wordpress.org/arontornberg/)
 *   [ Angry Creative ](https://profiles.wordpress.org/angrycreative/)

“BJ Lazy Load” je preveden na 11 jezika. Zahvala [prevoditeljima](https://translate.wordpress.org/projects/wp-plugins/bj-lazy-load/contributors)
za njihov doprinos.

[Prevedite “BJ Lazy Load” na svoj jezik.](https://translate.wordpress.org/projects/wp-plugins/bj-lazy-load)

### Zainteresirani ste za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/bj-lazy-load/), pogledajte
[SVN spremište](https://plugins.svn.wordpress.org/bj-lazy-load/)ili se pretplatite
na [dnevnik razvoja](https://plugins.trac.wordpress.org/log/bj-lazy-load/) od [RSS](https://plugins.trac.wordpress.org/log/bj-lazy-load/?limit=100&mode=stop_on_copy&format=rss).

## Dnevnik promjena

#### Version 1.0.9

 * Do not generate tiny image size if unless low-res preview image is used
 * Default placeholder image transparency fix
 * Lazy load image sizes attribute to avoid w3c validation error
 * Change activation order of src and srcset to avoid loading both original and 
   responsive version of image (by Lucian Florian)

#### Version 1.0.8

 * Skip classes regex fix
 * Amp compatibility (by mustafauysal)

#### Version 1.0.7

 * Update sponsored by Bonnier Tidskrifter
 * Fixed issue with srcset not lazy loading (by krispy1298)
 * Compatibility with BadgeOS plugin (by rohitmanglik)
 * WP’s theme style for submit button. (by odie2)
 * Images will now get the lazy-loaded class onload
 * Added optional rudimentary LQIP solution
 * Added working regex for selecting elements to skip

#### Version 1.0.6

 * Fixed bug when multiple iframes was on the same line of HTML code

#### Version 1.0.5

 * Added Polish language (by Maciej Gryniuk).
 * Remove leftover console.log() from debugging — oh, crap … I know 🙁

#### Version 1.0.4

 * We do not touch the feeds

#### Version 1.0.3

 * Fixed issue where some images wouldn’t be loaded on load under certain conditions.
 * Small performance improvement

#### Version 1.0.2

 * PHP 5.2 compatibility again

#### Version 1.0.1

 * Fixes issue with missing placeholder

#### Version 1.0

 * Internal rewrite. Code cleanup.
 * Supports 3rd party filters
 * Supports most infinite scroll (or content lazy loading) plugins (all that triggers
   post-load)
 * No more TimThumb
 * No more dependant on 3rd party JS, not even jQuery
 * Removed custom responsice/hidpi image handling in favour of compatibility with
   the RICG Responsive Images plugin
 * Added translations to Hebrew (he_IL) by Imri Sagive

#### Version 0.7.5

 * Also applies to text widgets (Thanks to Sigurður Guðbrandsson)

#### Version 0.7.4

 * Skips lazy loading of data-URIs

#### Version 0.7.3

 * Works with newlines in the HTML string for the IMG element

#### Version 0.7.2

 * Re-minified the combined js file for better compability with faulty minifiers

#### 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)

## Meta

 *  Version **1.0.9**
 *  Zadnje ažuriranje **prije 8 godina**
 *  Aktivnih instalacija **20.000+**
 *  WordPress inačica ** 3.5 ili viša **
 *  Testirano do **4.9.29**
 *  Jezici
 * [Danish](https://da.wordpress.org/plugins/bj-lazy-load/), [English (US)](https://wordpress.org/plugins/bj-lazy-load/),
   [German](https://de.wordpress.org/plugins/bj-lazy-load/), [Italian](https://it.wordpress.org/plugins/bj-lazy-load/),
   [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/bj-lazy-load/), [Polish](https://pl.wordpress.org/plugins/bj-lazy-load/),
   [Russian](https://ru.wordpress.org/plugins/bj-lazy-load/), [Spanish (Colombia)](https://es-co.wordpress.org/plugins/bj-lazy-load/),
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/bj-lazy-load/), [Spanish (Spain)](https://es.wordpress.org/plugins/bj-lazy-load/),
   [Spanish (Venezuela)](https://ve.wordpress.org/plugins/bj-lazy-load/), i [Swedish](https://sv.wordpress.org/plugins/bj-lazy-load/).
 *  [Prevedite na vaš jezik](https://translate.wordpress.org/projects/wp-plugins/bj-lazy-load)
 * Oznaka
 * [iframes](https://hr.wordpress.org/plugins/tags/iframes/)[images](https://hr.wordpress.org/plugins/tags/images/)
   [javascript](https://hr.wordpress.org/plugins/tags/javascript/)[Lazy Loading](https://hr.wordpress.org/plugins/tags/lazy-loading/)
   [Optimize](https://hr.wordpress.org/plugins/tags/optimize/)
 *  [Napredni pogled](https://hr.wordpress.org/plugins/bj-lazy-load/advanced/)

## Ocjena

 4.2 out of 5 stars.

 *  [  66 5-star reviews     ](https://wordpress.org/support/plugin/bj-lazy-load/reviews/?filter=5)
 *  [  4 4-star reviews     ](https://wordpress.org/support/plugin/bj-lazy-load/reviews/?filter=4)
 *  [  3 3-star reviews     ](https://wordpress.org/support/plugin/bj-lazy-load/reviews/?filter=3)
 *  [  4 2-star reviews     ](https://wordpress.org/support/plugin/bj-lazy-load/reviews/?filter=2)
 *  [  13 1-star reviews     ](https://wordpress.org/support/plugin/bj-lazy-load/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/bj-lazy-load/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/bj-lazy-load/reviews/)

## Suradnici

 *   [ Bjørn Johansen ](https://profiles.wordpress.org/bjornjohansen/)
 *   [ arontornberg ](https://profiles.wordpress.org/arontornberg/)
 *   [ Angry Creative ](https://profiles.wordpress.org/angrycreative/)

## Podrška

Želite nešto reći? Potrebna vam je pomoć?

 [Pregledaj forum za podršku](https://wordpress.org/support/plugin/bj-lazy-load/)

## Doniraj

Želite li podržati napredak ovog dodatka?

 [ Donirajte ovom dodatku ](http://www.kiva.org/)