• Resolved Hayden Ng

    (@haydenng664)


    Hi, these 2 errors are found after I preload the urls

    • link rel=preload must have a valid ‘as’ value
    • The resource url was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
    • How do I fix it?

    • This topic was modified 4 years, 3 months ago by Hayden Ng.
    • This topic was modified 4 years, 3 months ago by Hayden Ng.
    • This topic was modified 4 years, 3 months ago by Hayden Ng.
Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Autoptimize simply adds those preload links for every comma-separated URL added in Settings -> Autoptimize -> Extra -> Preload, so you could just add https://bizsphere.com.my/wp-content/plugins/vc-extensions-bundle/css/admin_icon.css?ver=5.5.3 there as well?

    Thread Starter Hayden Ng

    (@haydenng664)

    This has already been added in the first place. All are working just this specifically is not working.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, “work” it does, as this is in the HTML:

    
    <link rel="preload" href="https://bizsphere.com.my/wp-content/plugins/vc-extensions-bundle/css/admin_icon.css?ver=5.5.3" as="style">

    but here as well that’s all AO can do, it’s a “hint” for browsers to preload, if it is preloaded and if it used and if it is useful is not something AO can ensure.

    Typically preloading CSS/ JS/ Images is only useful if the resource is loaded by javascript shortly afterwards, so if that CSS is not loaded by some JS-code or if it is loaded late (no idea what the threshold is), it is useless to have it preload in the first place ..

    Thread Starter Hayden Ng

    (@haydenng664)

    Alright! Thanks a lot for the info. Really appreciate your help! ??

    Have a nice day!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome haydenng664 , feel free to leave a review of the plugin and support here! ??

    frank

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘link preload must have a valid ‘as’ value after preloading url’ is closed to new replies.