Title: Pre loading autoptimize?
Last modified: May 24, 2021

---

# Pre loading autoptimize?

 *  Resolved [john53](https://wordpress.org/support/users/john53/)
 * (@john53)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/pre-loading-autoptimize/)
 * 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](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/pre-loading-autoptimize/#post-14478654)
 * 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](https://wordpress.org/support/users/john53/)
 * (@john53)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/pre-loading-autoptimize/#post-14479134)
 * 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](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/pre-loading-autoptimize/#post-14479166)
 * 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](https://www.debugbear.com/blog/rel-preload-problems)
   for more in-depth info.
 * hope this clarifies,
    frank
 *  Thread Starter [john53](https://wordpress.org/support/users/john53/)
 * (@john53)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/pre-loading-autoptimize/#post-14484208)
 * Hi Frank
 * Thanks very much for the information. I understand what you mean.
 * Best regards
 * John
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/pre-loading-autoptimize/#post-14484230)
 * 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.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/pre-loading-autoptimize/#post-14484230)
 * Status: resolved