Closed SoftboiledStudios closed 1 year ago
@SoftboiledStudios Nice idea. There will be new version of plugin released soon and i will add this functionality as optional.
Awesome - @piotrpog could you bump this thread when it gets released. This way I can update my boilerplate to use this new option/code.
Awesome!
@piotrpog Do you have any idea when this new release would come? :) thanks in advance!
@SoftboiledStudios hey, i think it should be this week. i will release smaller update with just this functionality.
@piotrpog any news on this? :)
@SoftboiledStudios
@CreateSean
Hi,
sorry for the delay - just released new version of plugin including this functionality.
To enable it, you need to set useWidthHeightAttributes
to true
in plugin settings.
@piotrpog Awesome! I'll try it out tomorrow and will let you know!
@piotrpog works perfectly, thank you. Have update my boilerplate
Noticed that the docs don't reference this anywhere so you probably need to update that as well.
@SoftboiledStudios
@CreateSean
Little announcement, just realized that plugin does not take into account fit
transform mode and also calculating width/height when one of these values is missing.
Should be fied through weekend.
Will update docs then too :)
@piotrpog hey man! Thanks already for this great update! I do have some small extra remarks:
Already great job on this update! If you could fix the auto heights, that would be awesome!
Kind regards,
Geoffrey
@SoftboiledStudios Hey, sorry for the delay. Had lot of going on this month. Imag rtoolbox now adds width and height to image tag. It also adds width and height attrs only whne there is only width/height present in the transform. @CreateSean Docs updated ;)
@piotrpog Nice man! Big thanks for this support!
@SoftboiledStudios @CreateSean Small notification - i recently released big uodate to the plugin,w hich also fixes some bugs with this functionality, like errors when svg image is used.
Hi Guys,
I was wondering if there is an option to add width and height attributes to the source tags, this would greatly improve the plugin to prevent content-layout shift on lazy loaded images. With those attributes, the image tag will know with aspect ratio to follow before the image gets loaded in, so scrolltriggers and CLS won't be affected by it.
Greets!