• Resolved snippet24

    (@snippet24)


    Hi, I know currently is not possible but would allow for some nice optimizations.. if is feasible of course…

    Kind Regards

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

    (@optimizingmatters)

    I’m not convinced to be honest; I understand it would be handy, but it would lead to more files being preloaded and preloading should be used (very) sparingly really to prevent it from … slowing down the site rendering ??

    Thread Starter snippet24

    (@snippet24)

    If badly used yes, but if properly used it could preload the cached dynamic generated files that are critical and be a great booster.. and appealing to educate perhaps with a warning? Actually I discovered that Wp-rocket plugin supports it, would be nice if Autoptimize allows it as well.. or maybe just an option to preload cache, that would do and no improper use perhaps

    • This reply was modified 1 year, 1 month ago by snippet24.
    • This reply was modified 1 year, 1 month ago by snippet24.
    • This reply was modified 1 year, 1 month ago by snippet24.
    • This reply was modified 1 year, 1 month ago by snippet24.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    but typically (with “critical CSS” and deferred -or delayed- JS) the cached dynamic generated files are not needed for the initial rendering so preloading those would be counter-productive as that takes away bandwidth (esp. on mobile)?

    Thread Starter snippet24

    (@snippet24)

    Question: and preloaded critical CSS? or there’s no benefit there? And maybe the other scenario would be cached CSS files without critical CSS?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Question: and preloaded critical CSS? or there’s no benefit there?

    no; critical CSS is inlined, it’s not a separate file to request ??

    And maybe the other scenario would be cached CSS files without critical CSS?

    the problem; either CSS is aggregated, in which case you would preload way too much, or CSS is not aggregated, in which case you’ll have to find out for yourself what files need to be preloaded. critical CSS cleary is the way to go here, … ??

    Thread Starter snippet24

    (@snippet24)

    no; critical CSS is inlined, it’s not a separate file to request ??

    Right, srry forgot that..

    or CSS is not aggregated

    I see. Im going a bit offtopic here but maybe I found a bug :O I was analyzing the two css files that have the autoptimize_single_ prefix on my site and it seems that the same css file “main.css” is being loaded as unminified and minified with the above prefix.

    https://drive.google.com/file/d/1mKH57hp0Wle5Z9MparnBDjSxFeVzdK1C/view?usp=sharing

    https://www.tomastestart.com/wp-content/cache/autoptimize/css/autoptimize_single_318d0c4b2a68495658dd4e28fe7a922d.css

    and

    https://www.tomastestart.com/wp-content/themes/tomastestart/css/main.css

    Maybe is because it is being preloaded in the head? wich is causing this kind of loaded duplicated style?

    <link rel="preload"  as="style">
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    indeed; if you’re preloading you’ll have to preload the autopitmize_single one ??

    Thread Starter snippet24

    (@snippet24)

    And will the name change upon clearing the cache?

    Also can be the duplicated style avoided if preloaded or nothing to do there? Thanks ??

    • This reply was modified 1 year, 1 month ago by snippet24.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    And will the name change upon clearing the cache?

    if soemthing (even one letter) changes in the original code, yes it will change (because the “random” part of the filename is an (md5-)hash of the contents).

    Also can be the duplicated style avoided if preloaded or nothing to do there? Thanks ??

    In AOPro you can configure it to remove specific files but that only makes sense if the file is entirely unused (for all devices, on all pages).

    Alternatively there’s the “Rapidload” service (see “optimize more” tab) which has pretty complex logic on their own servers to remove unused CSS.

    Thread Starter snippet24

    (@snippet24)

    Understood, thanks! ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Potential feature: support wildcard in preload file name’ is closed to new replies.