• Resolved aguett

    (@aguett)


    Hello,

    The lazy loading is a GREAT addition, thanks for that!

    Any reason why the lazysizes.min.js is NOT aggregated with all the other js files?

    If there is no technical reason behind that, it should be aggregated with everything else js.

    Cheers,

Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    there’s a functional reason actually; if aggregated the images would start loading later, which from a UX point of view would be sub-optimal. the JS is now loaded separately, but async so not render-blocking and per the lazysizes config (in inline JS) is configured for optimal onLoad time.

    now off course if you want to let AO aggregate it, you can make it so with this simple filter;

    
    add_filter('autoptimize_filter_imgopt_lazyload_js_noptimize','__return_false');

    happy optimizing ??
    frank

Viewing 1 replies (of 1 total)
  • The topic ‘Why not aggregate lazysizes.min.js with all the rest?’ is closed to new replies.