Support » Plugin: Autoptimize » Pre loading autoptimize?

  • Resolved john53

    (@john53)


    Hi

    I already preloaded my logo and astra.woff font, which is loaded by my astra theme.

    I tried additionally pre loading the site icon, which improved load speed and finally pre loaded autoptimize.

    I expected this last move to break something but it doesn’t.

    Everything works fine and the site loads even faster. Is there any reason why I shouldn’t do this? Could it cause some problems that I am not aware of?

    Thanks for this great plugin.

    Best regards

    John

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

    (@optimizingmatters)

    well, the autoptimize filenames change when different CSS/ JS is found, meaning on 2 pages different files are loaded in which case it is possible you’re preloading a file which used on page A but not on page B?

    Thread Starter john53

    (@john53)

    Thanks Frank

    I had a feeling it was too good to be true! I will remove it from preload.

    Will pre loading the site icon be OK ?

    I don’t suppose there is any way to use an expression for the preload that will pre load the correct autoptimize file for each page?

    Thank you once again.

    Best regards

    John

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    it can be done using some code hooking into AO’s API, but the issue is that if you preload a lot of resources you’re “downvoting” non-preloaded resources, which especially in low(er)-bandwidth situations can lead to non-preloaded resources being loaded substantially later.

    in general I would let the browser decide on resource priority (it’s good at it) and only add a limited set of resources to preload.

    see e.g. https://www.debugbear.com/blog/rel-preload-problems for more in-depth info.

    hope this clarifies,
    frank

    Thread Starter john53

    (@john53)

    Hi Frank

    Thanks very much for the information. I understand what you mean.

    Best regards

    John

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, have a nice day 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pre loading autoptimize?’ is closed to new replies.