How to disable lazy load for hero images

I’d like to preload the hero images and therefore i’d need to disable lazy load. how to?

cheers Markus

following this, have you found a solution?

Add a custom attribute to the image under “Styles”.

Name it “loading”
Put the value to “eager”

Solved.

2 Likes

I tried this for the logo element but it unfortunately did not work, because the attribute is added to the link instead of the image.

use a SVG for the logo

1 Like

i solved it slightly different - i have a snippet that checks if loading eager is set, if yes it will add decoding sync, if not it will add loading lazy and decoding async.

obviously using browser lazy load is not quite as effective as a JS solution that’s why im looking for ward to a solution provided by Bricks for their own lazy load.

cheers,
Markus