• Resolved liftyourgame

    (@liftyourgame)


    PageSpeed Insights says that the render-blocking javascript file wp-includes/js/jquery/jquery.js is a big issue for my page speed. When I don’t have it on the optimisation exclusion list I get about 76/100 and without I get around 60/100 for mobile.

    However, when I optimise delivery of this file a slider on my homepage (made with Master Slider) doesn’t display at all. I’ve tried checking “Add try-catch wrapping” but it still doesn’t display.

    Is there a way to get it to work and optimise that file or should I try and switch my slider plugin?

    Thanks!

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

    (@optimizingmatters)

    Well, sliders in general can be a pain to optimize, esp. when focusing on “pagespeed insights” (which is just an attempt to quantify best practices being followed, I prefer to focus on KPI’s such as time to first byte and time to load instead).

    but to answer your question;
    1. you could try to tick the “also aggregate inline JS” option, this _might_ fix all your problems (but could lead to your cache size increasing too fast).
    2. you could indeed do away with your slider or try finding one which is less dependent of javascript (jquery) being available early (see https://wp-rocket.me/blog/fastest-wordpress-image-slider-plugin/ for inspiration).

    hope this helps,
    frank

    Thread Starter liftyourgame

    (@liftyourgame)

    Thanks so much! That fixed the issue.

    Just to follow up on using PSI, should I focus on improving the overall load time (Pingdom’s metric) rather than specific stuff Google complains about do you think? I was using it because they’re Google and so I thought they’d use those factors when ranking pages. My overall load time is OK for most pages (1-5 seconds) but I get like 55-70/100 for mobile on PSI, so I’m just wondering how much I should worry about render blocking Js and all that stuff.

    Thanks!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    google focuses on time rather then scores. 1-5s is not too bad, but I would try to move into the 1-3s fork if I were you (but I don’t know your website off course, maybe that’s hard to attain) ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Optimising JS breaks a slider’ is closed to new replies.