Drop Bricks Custom Lazy Load Solution

Hi,

Browser native lazy load support is decent at 91% which includes images and videos. Lazy loading via attribute for images & iframes | Can I use... Support tables for HTML5, CSS3, etc

If you remove the lazy load video support then it’s close to perfect. Why use a custom solution now?

Does native support offset and background videos/images?

@Deanphillips Nope. It does not without additional js. Though I don’t prefer background images due to SEO.

Brick’s version does. That’s likely why they have their own custom version atm.

1 Like

Not that this necessarily speaks to your concern exactly, but if you’re using any kind of performance tool like WP Rocket or Flying Press, then you’re best to disable the Bricks lazy loading function anyways in favour of the performance tools implementation. Just adding this for anyone who comes across this in the future using performance improvement plugins.

1 Like

Is the lazy loading done by perf plugs better then the native Bricks solution?

I don’t know about that.

I tend to belive Bricks version is better due to supporting background lazy loading and being optimized specifically for the builder.

Perf plugs usually needs additional filter to have background images lazy loading.

So for this reason I prefer using Bricks lazy loading rather then any other plugs versions.

It would depend on the plugin of course but I believe Flying Press does a better job of it personally. Flying Press supports background lazy loading too.

1 Like