Lazysizes: Changelog 3.0.0

Created on 19 Mar 2017  路  2Comments  路  Source: aFarkas/lazysizes

Will there be a changelog for 3.0.0? What changed in 3.0.0?

Most helpful comment

There wasn't much changed.

  1. Some network perf-improvement (explanation later)
  2. Bugfix: lazyloaded class is added to early in Firefox.

The perf improvement was the justification to make a major jump, although there was no API change. The reason is that the script changes the async behavior of lazySizes at the start a bit.

Normally lazySizes always checks the layout of the images inside of an idle frame or the next task after rAF and changes the images in the raf after the layout check.

I changed the behavior on init to be sync (the read/writes are still ordered (i.e. separated)). This can be helpful, if you are using .lazyload on crucial images. Often you will need to call lazySizes.init() manually to see a positive effect in your network tab. See also: https://github.com/aFarkas/lazysizes/issues/185#issuecomment-268344745

All 2 comments

There wasn't much changed.

  1. Some network perf-improvement (explanation later)
  2. Bugfix: lazyloaded class is added to early in Firefox.

The perf improvement was the justification to make a major jump, although there was no API change. The reason is that the script changes the async behavior of lazySizes at the start a bit.

Normally lazySizes always checks the layout of the images inside of an idle frame or the next task after rAF and changes the images in the raf after the layout check.

I changed the behavior on init to be sync (the read/writes are still ordered (i.e. separated)). This can be helpful, if you are using .lazyload on crucial images. Often you will need to call lazySizes.init() manually to see a positive effect in your network tab. See also: https://github.com/aFarkas/lazysizes/issues/185#issuecomment-268344745

Thanks for the clarification!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Undistraction picture Undistraction  路  5Comments

thasmo picture thasmo  路  6Comments

ClemensSchneider picture ClemensSchneider  路  7Comments

muratcorlu picture muratcorlu  路  5Comments

virginiarcruz picture virginiarcruz  路  3Comments