• Resolved vladycu

    (@vladycu)


    Hi, I saw in articles back in 2017 an option about browser cache, which would remove the error about leverage browser caching.
    Also, the option to defer js seems to do nothing for me.

    Thank you in advance if you can help ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi,

    There is a Browser Cache option inside Litespeed Cache >> Settings >> Advanced.
    You can enable the browser cache and also set the TTL for it from there.

    What are you not able to achieve with JS Defer?

    Best Regards
    Shivam

    Thread Starter vladycu

    (@vladycu)

    Thanks for the answer!

    I managed to find the Browser Cache at last, few hours later :))
    About JS Defer, I wasn’t able to see any improvements in GTmetrix. But now it’s ok, it jumps to 66.

    Now I have a really big problem, I have this cover image loading with a handmade script, smartcrop.js.
    Even though I did set in Tuning the JS Deferred Excludes

    /wp-includes/js/jquery/jquery.js
    /wp-content/themes/photographer-wp-child/smartcrop.js

    it seems not to load smartcrop, having this error in console

    ReferenceError: smartcrop is not defined

    Is there any way to force loading smartcrop.js from the beggining?

    P.S. Btw, this is an example page: https://vladilas.ro/portfolio/elisa-alex-gura-humorului-2018/

    Plugin Support Cold Egg

    (@eric780217)

    Hi @vladycu,

    May I ask if you had only enable JS Defer and no other JS minify/Comfine and push?
    And I can not see any cache hit from response header, have you turned off cache function?

    Best,
    Eric

    Thread Starter vladycu

    (@vladycu)

    Sorry, I was working at the site and had the develop mode activated.
    I enabled JS Defer, also the two exclusions in tuning, as all the other options js, css minify, combine, push…

    Thread Starter vladycu

    (@vladycu)

    So, JS Defer is active and seems to be working (like I said, I have that cover image not showing), but GTmetrix says that is not active.
    Really strange all this JS Defer thing…

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please provide the report number ?

    Best regards,

    Thread Starter vladycu

    (@vladycu)

    Thanks for replying. This is the report number: PMWYFESN

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    So I just checked

    JQ was excluded by the setting.

    inline JS can’t not be defer , and last one is injected by CloudFlare.

    Best regards,

    Thread Starter vladycu

    (@vladycu)

    Sorry, maybe I’m not that of an expert. What should I do, exactly? :))
    Thanks!

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    JQ was set to excluded from defer on purpose as defer it may cause a lot of problem, but you can still try disable JQ excluding.

    Best regards

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Browser cache gone?’ is closed to new replies.