Okay
  Public Ticket #1991160
Preload key requests + Defer Offscreen Images
Closed

Comments

  • jonathonfowler started the conversation

    Hit here, I want to resolve a pagespeed insights issue:


    Defer Offscreen Images: Consider lazy-loading offscreen and hidden images after all critical resources have finished loading to lower time to interactive. 

    "Preload key requests - Consider lazy-loading offscreen and hidden images after all critical resources have finished loading to lower time to interactive. - this will save 2.5 seconds.


    How do I enable lazy loading  preload key requests for LayerSlider?

    I already WPRocket plugin which has a lazyload feature, and I also use a CDN (Stackpath) to speed up my site delivery.

  • [deleted] replied

    Hello Jonathonfowler,

    Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today. I appreciate your patience while we've been working towards your ticket.

    LayerSlider offers multiple options (Advanced tab) that you can utilize to increase performance. The following options might be related for you:

    The conditional script loading option will only load the scripts when they are needed. The include scripts in the footer option helps with eliminating the render-blocking scripts. The slider markup caching option spares server resources and lowers database connections. Please also note that the caching is not present for logged in admins, so you might not see the difference on the back-end.

  • jonathonfowler replied

    Hi there, thanks for your reply. Unfortunately the recommendation have no effect - the error is listed on pagespeed insights and states: 
    'Preload Key Requests' and refers to the skin at wp-content/plugins/LayerSlider/static/layerslider/skins/v5/skin.css

    How do I preload the skin referred to? Thanks.

  • [deleted] replied

    Thank you for the feedback. The skins are dynamically loaded, so unfortunately there is no option to preload them.

    However please note that these page speed tests and insights are only giving recommendations. There are also a lot of false positive results and not every recommendation is equally important. This skin loading case might be on the recommended list, but we can guarantee you that it won't affect your site's performance or slow it down at all.