Optimizing Matters
Forum Replies Created
-
Forum: Plugins
In reply to: [Autoptimize] 500 error when inlinecss and js is enabledah, so you get a server error (HTP 50x), but the HTML does get returned and the inline CSS/ JS in that HTML is indeed not minified?
AO stores it’s temporary files in
wp-content/cache/autoptimize
, not in the root folder, so that must have been something different alamana … typically even without the code snippet files will be there, so seeing them does not mean the snippet actually works :-/re. “might have done wrong”; afraid that depends entirely on what else there is in functions.php. assuming you added the code snippet at the end, try adding it somewhere at/ near the top maybe?
(do take into account functions.php gets overwritten with each theme update though)
can you try adding it via the code snippets plugin instead?
Forum: Plugins
In reply to: [Autoptimize] 500 error when inlinecss and js is enabledSo if I understand correctly, this does work when using the ID of the page, so the problem is with how you check the template?
Forum: Plugins
In reply to: [Autoptimize] An image is being preloaded on all pages – ShortPixel CDNwith AO disabled (by adding ?ao_noptimize=1 to the URL) the preload link is still there, which proves that it is not added by AO. at that point HTML 2 comments appear;
<!-- Load the stylesheet that will reference the LCP image. --> <link rel="stylesheet" href="https://weavearealpeace.org/wp-content/plugins/nextend-smart-slider3-pro/Public/SmartSlider3/Application/Frontend/Assets/dist/smartslider.min.css"> <!-- Preload the LCP image with a high fetchpriority so it starts loading with the stylesheet. --> <link rel="preload" fetchpriority="high" as="image" href="https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img/https://weavearealpeace.org/wp-content/uploads/2023/05/Sharing-the-Dream-in-Guatemala.jpeg" type="image/jpg">
which seems to indicate a deliberate attempt to work on LCP, likely either in a theme file (template or functions.php) or in a code snippet added as/ with a plugin?
hope this helps,
frankhow & where did you add the PHP code snippet alamana ?
Forum: Plugins
In reply to: [Autoptimize] Googlebot 404 erroryou’re welcome, feel free to leave a review of the plugin and support here! ??
Forum: Plugins
In reply to: [Autoptimize] Googlebot 404 errorI would suggest to;
* disable “aggregate JavaScript” and instead use “don’t aggregate but defer” + “also defer inline JS”
* try not to clear AO’s cache too often (with the above change it should be needed a lot less)hope this helps,
frankForum: Plugins
In reply to: [Autoptimize] Can’t clear completelythat’s when using the “clear cache” from the top menu, which uses AJAX and which for that reason can time out. if you instead go to the Autoptimize settings page and you click on “save changes and empty cache” the cache is cleared in a different manner which will not time out.
hope this helps,
frankpro-tip; you can usually also disable Autoptimize on a per-request basis by adding
?ao_noptirocket=1
to the URL.but this indeed looks like a problem with JavaScript optimization, you can confirm by disabling JS optimization. disabling “aggregate JS” and instead enabling “don’t aggregate but defer” + “also defer inline JS” might fix the issue.
hope this helps,
frankForum: Plugins
In reply to: [WP YouTube Lyte] PHP 8.4thanks Relja ??
Forum: Plugins
In reply to: [WP YouTube Lyte] PHP 8.4it’s on my radar but have not had the time to look into it yet (there’s no functional impact), if these notices bug you, you can use this code snippet (not mine) to stop these from being logged.
Forum: Plugins
In reply to: [Autoptimize] Autoptimize Pro page cache issueSupport for premium version is not allowed on this forum I’m afraid @gokilamanickam, but feel free to contact me via the contact form at https://autoptimize.com/
best,
frankForum: Plugins
In reply to: [YITH WooCommerce Quick View] New versions are buggypro-tip; you can generally disable Autoptimize on a per-request basis by adding
?ao_noptirocket=1
to the URL.if the problem is not there at that point, some autoptimize (re-)configuration might be needed to fix this. there are troubleshooting tips and info on how to exclude in the AO FAQ.
hope this helps debugging,
frank (ao dev)