Quantcast
Channel: WordPress.org Forums » [Autoptimize] Support
Viewing all 14063 articles
Browse latest View live

css optimation Wont work with wp googlemaps


Image Loading Issue

$
0
0

Replies: 0

I’ve had Autoptimize running happily for a while alongside Cloudflare and WP-Rocket but tonight I noticed my images have stopped showing unless I hover over them.

Suspected a lazy load issue but by a process of elimination found that if I deactivate Autoptimize it’s all fine, issue comes straight back if I put it back on.

Using it for HTML and CSS only on simple settings.

Everything was working fine and I’ve changed no settings – any ideas?

Thanks

Autoptimize crashes my website

$
0
0

Replies: 0

Hello,

I have a strange issue with Autoptimize.
If I include “/wp-includes/js/jquery/jquery.js” in the optimize ignore list,
my website crashes every day at least once. (I monitor this with uptimerobot.com).

I contacted my web hosting regarding this issue (because I first thought it was an issue with my webhost).
This was there answer: (in dutch)

“Ik heb hier nog wat verder naar gezocht. Jouw account is de “top” gebruiker op deze server en een tiental keer per dag worden er verbindingen van je account afgebroken omdat het aantal te hoog oploopt. Zie het voorbeeld hieronder waarbij er meer dan 100 verbinding quasi tegelijk starten en even later allemaal afgebroken worden doordat er hierbij excessief veel resources gebruikt worden. Dit is begonnen rond 26/10.”
(In short: your account is the top recource user on the server, we have to cancel connections because the amount of connections exceeds the limit)

If I disabled the Autoptimize plugin the problem was gone.
I then further investigated this problem and noticed if I removed jquery.js from the ignore list the problem is solved. But some scripts on my website don’t work anymore. So I have to include jquery.js in the ignore list.
At this moment Autoptimize is disabled on my website because of this problem.

I know this is probably a conflict with another plugin or theme.
But it is hard for me to investigate this because this is a live website, I can’t test/debug this a lot.

If install Fast Velocity Minify instead of Autoptimize, the same problem occurs.

Did you hear this problem before, do you have an idea which plugin causes this conflict?

Page Cache Grows So Fast with WP Engine’s Geotargeting enabled

$
0
0

Replies: 0

Hi there,

I’m cross-posting from where I created this on WP Engine’s Geotargeting plugin, but basically i’ve been using AO for the past 2 years on my site and page cache has never been an issue.

Yesterday I enabled Geo-Targeting from WP Engine (https://wpengine.com/support/enabling-geotarget/) which is “WP Engine’s proprietary, multi-tiered caching system (Evercache)” that allows me to identify and filter content based on where people are visiting from. Since enabling it, my page cache blooms to over 22 Gigs in < 12 hours which is pretty insane since i’m reading about other folks that worry about page caches of 1 gig…

I unticked all aggregating inline JS, CSS and excluded wp-content/cache and wp/content uploads. I’ve even read this https://blog.futtta.be/2016/09/15/autoptimize-cache-size-the-canary-in-the-coal-mine/ to know why clearing cache repeatedly is bad.

I guess my ultimate question to folks is has this happened to any other users? If so, were there any workarounds if we wanted to maintain both AO and Geo-targeting?

Thanks!

Announcing Autoptimize 2.5

$
0
0

Replies: 0

Mid-April the new Autoptimize will be released. Version 2.5 will have the following changes;

* new feature: image lazyloading (using lazysizes)
* new feature: image optimization can now switch to WebP images in supporting browsers (requires lazyloading to be active)
* new: added option to enable/ disable the minification of excluded JS/ CSS files (on by default)
* UI changes: “Main” becomes “JS, CSS & HTML”, “Images” is a new separate tab
* code refactoring: image optimization is removed from autoptimizeExtra.php nad now lives and breathes in autoptimizeImages.php
* misc. bugfixes and smaller improvements

For those who want to test, you can either download the Beta from Github (version 2.5.0-beta5) or the “development” version from wordpress.org (version 2.4.99 to ensure it will update once 2.5.0 is out).

Feel free to download, test and leave feedback here! 🙂

Happy optimizing,
frank

404 errors

$
0
0

Replies: 0

Hey Frank,

So I’ve noticed a few 404 errors in my web logs for the css and js files that autoptimize generates. I read through this useful topic:

https://wordpress.org/support/topic/404-errors-86/

And realised I’ve been clearing the cache when I updated my css files when I don’t need to be doing that. Oops.

So I’ve cleared out caches where I can (cloudflare, server cache etc).

I still see the 404 errors, and I’m wondering if this is due to pages being cached in places I can’t clear.

I don’t know how this might impact users browsing the site or if it’s just a bot thing. I noticed someone suggested putting a 410 redirect in place for those autoptimize files in my 404.php which seemed sensible.

Then I wondered if it might make more sense (tell me if I’m wrong please) to put a 301 redirect in place to the location of the new AO files when a 404 happens that matches the old files. If so, what the easiest way to retrieve the url of the existing AO css and JS?

Apologies if this doesn’t make sense or I’m misunderstanding something 🙂

Laurence

Cross-Origin Read Blocking (CORB) blocked

$
0
0

Replies: 0

Hi Frank,

I recently updated to the latest version and have run into the following issue.

My configuration uses the Inline and defer css. I use the criticalcss.com to generate the inline css.

The deferred style sheets are trying to be delivered via my CDN but are being blocked. I am getting the following error message when inspecting on Chrome:

Cross-Origin Read Blocking (CORB) blocked cross-origin response https://mychirocdn.r.worldssl.net/wp-content/cache/autoptimize/579/css/autoptimize_fcb4c65254ba3b6544b5279f173e86c8.css with MIME type text/html.

It looks like the <link doesn’t include the type=”text/css” and as a result it is being considered at text/html.

Any suggestions to resolve this?

Thanks,
Pat

Top bar menu for different user roles

$
0
0

Replies: 1

Hi! We are running a WooCommerce website and my customers’ employees have ‘Shop manager’ user roles. They don’t have Autoptimize top bar menu. So they can’t clear the cache. How can we get the top bar menu to be shown for them?


Influx of “ao_speedup_cachebuster” requests caused site to crash

$
0
0

Replies: 0

Hello,

I’ve been using Autoptimize for a long time and haven’t ever had an issue. Last week, I activated a companion plugin for Autoptimize which auto-clears cache (“Autoclear Autoptimize Cache“). Upon activation of the companion plugin, my website crashed. My website is hosted on Pantheon, and the crash was resolved upon removal of the companion plugin via Pantheon dashboard.

Looking through my server logs at the time of the crash, I found that ~150 requests were made to ao_speedup_cachebuster within a few minutes.

Can you help me understand what this request does, and why the influx of requests to ao_speedup_cachebuster could have cause the site to crash?

Thanks!

Conflict with Kinsta cache plugin

$
0
0

Replies: 0

Hi there
I have used Autoptimize for some time and I am very fond of it. However I just changed my hosting company and now run on Kinsta.

Somehow there is an issue when running my site in Chrome browser. When loading, it starts by showing big blue letters before changing to what should actually be there from the start.

I tried disabling Autoptimize, clearing Kinsta cache and then it works like a charm.
Is there a setting I could remove in Autoptimize or exclude something in order to make this anoying blue “thing” go away?

See this little video about the bug: https://www.useloom.com/share/b167226389804c88826f01d9c84cf7ed

Cheers
Michael

Breaking AMP Pages

$
0
0

Replies: 0

Hello,

I am using Newspaper Theme and their new version has a new AMP plugin.

Anyway, when enabling “Optimise CSS Code” It breaks the AMP page. When i disable it loads fine.

I read it is not supposed to run on AMP pages but cleary it does.

Amp url is …/?amp is there a way to exclude that?

plugin folder if plugins/amp can i exclude everything in that?

I turned off Autoptimize for now….

/J

  • This topic was modified 19 minutes ago by kattouf.

Problem using “CDN Base URL” for CSS and JS files

$
0
0

Replies: 1

How do I get the “CDN Base URL” to work properly with the JS and CSS files that Autoptimize generates? When I enter my CDN Base URL (https://*****.sirv.com/) on the settings page, Autoptimize uses:

https://*****-cdn.sirv.com/**********/wp-content/cache/autoptimize/css/autoptimize_245a6b0db571c66994bcb974996f39b1.css
and
https://*****-cdn.sirv.com/**********/wp-content/cache/autoptimize/js/autoptimize_dac323a6bde9ae42c82aa028fd7e29f9.js

instead of the desired

https://*****-cdn.sirv.com/css/autoptimize_245a6b0db571c66994bcb974996f39b1.css
and
https://*****-cdn.sirv.com/js/autoptimize_dac323a6bde9ae42c82aa028fd7e29f9.js

How do I fix this? Do I have to manually create a matching directory structure (/wp-content/cache/autoptimize/js/) at my CDN? I’m having trouble understanding how this works because–unlike an image–the name of Autoptimize’s JS file is always changing.

Thank you in advance for your help!

Deleted Autoptimize.. CSS header a mess in header

$
0
0

Replies: 1

hey Frank..

first thanks for your awesome plugin, i have used it on multiple sites but right now i need to remove it from one of my other sites for testing on minimal / zero plugins. The issue is the second i do the header CSS is messed up and pushes text underneath. I have re-enabled it and disabled it and it is definitely the AO plugin as it is the only cache / minify plugin i have installed.

What i need is revert instructions how to put all the changes that AO made when it was installed. I have unticked all options and deactivated with the same issue. Also removed the cache folder and it still has the same problem.

Would appreciate some tips on what AO does so i can vert it under the hood.
thanks again!
Mark

Google thinks site is not mobile friendly

$
0
0

Replies: 1

Hi!
When I activate Autoptimize on my site and use the standard settings in Autoptimize Google search console thinks the site is not mobile friendly anymore (although the site looks mobile friendly for the visitor and loads fast). I had to deactivate Autoptimize since google punishes my SEO if Google thinks the site is not mobile friendly. What should I do? (I’m using the Salient theme, the host is Kinsta)
All the best,
Magnus

Deleted Carousel and now page is all wacked

$
0
0

Replies: 0

So I deleted a module on homepage that was a carousel. Then when I went to the page then it is all messed up. When I type ctrl-shift-j this is what it says

Refused to apply style from ‘https://americanundercar.com/wp-content/cache/autoptimize/css/autoptimize_1cbbee4c88750e874b0106ca4279f85f.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):1 Refused to apply style from ‘https://americanundercar.com/wp-content/cache/autoptimize/css/autoptimize_single_5b528f73c24e7c929a06eca1346ec0c2.css?ver=3e38bcc293b70323c4260f4db733f343’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
2autoptimize_a31bfc5acf266f3046f68716d6ff51e7.js:1 Failed to load resource: the server responded with a status of 404 ()
(index):1 Refused to apply style from ‘https://americanundercar.com/wp-content/cache/autoptimize/css/autoptimize_1cbbee4c88750e874b0106ca4279f85f.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):1 Refused to apply style from ‘https://americanundercar.com/wp-content/cache/autoptimize/css/autoptimize_single_5b528f73c24e7c929a06eca1346ec0c2.css?ver=3e38bcc293b70323c4260f4db733f343’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

If I disable autoptimize it fixes the errors go away.

How did this happen from deleting the carousel from the home page?


Home page content block impacted

$
0
0

Replies: 0

Hey Frank,

So sorry to bother again with this, but I can’t seem to figure this out.

When logged in, it’s not a problem with the logged in view. When not logged in, I see one of the home page blocks layer on top of my hero banner on my home page.

I did generate new critical path CSS with this link:

<link rel="preload" as="style" media="all" href="https://1mcf293ioy92uaqhx34yt45x-wpengine.netdna-ssl.com/wp-content/cache/autoptimize/6/css/autoptimize_e7dac3a90699778c352d02e65186e53f.css" onload="this.onload=null;this.rel='stylesheet'" />

There are additional links though that are generated by the cache and one is “media=”print”” and the other is “media=”screen,” as you can see in the below referenced block of code.

Here’s the whole block:

<link rel="preload" as="style" media="all" href="https://1mcf293ioy92uaqhx34yt45x-wpengine.netdna-ssl.com/wp-content/cache/autoptimize/6/css/autoptimize_e7dac3a90699778c352d02e65186e53f.css" onload="this.onload=null;this.rel='stylesheet'" /><link rel="preload" as="style" media="print" href="https://1mcf293ioy92uaqhx34yt45x-wpengine.netdna-ssl.com/wp-content/cache/autoptimize/6/css/autoptimize_f33049d8ba44e5f60770feed9f3433fa.css" onload="this.onload=null;this.rel='stylesheet'" /><link rel="preload" as="style" media="screen" href="https://1mcf293ioy92uaqhx34yt45x-wpengine.netdna-ssl.com/wp-content/cache/autoptimize/6/css/autoptimize_73db07958ed25a1ee2945e0a0d33df6e.css" onload="this.onload=null;this.rel='stylesheet'" /><noscript id="aonoscrcss"><link type="text/css" media="all" href="https://1mcf293ioy92uaqhx34yt45x-wpengine.netdna-ssl.com/wp-content/cache/autoptimize/6/css/autoptimize_e7dac3a90699778c352d02e65186e53f.css" rel="stylesheet" /><link type="text/css" media="print" href="https://1mcf293ioy92uaqhx34yt45x-wpengine.netdna-ssl.com/wp-content/cache/autoptimize/6/css/autoptimize_f33049d8ba44e5f60770feed9f3433fa.css" rel="stylesheet" /><link type="text/css" media="screen" href="https://1mcf293ioy92uaqhx34yt45x-wpengine.netdna-ssl.com/wp-content/cache/autoptimize/6/css/autoptimize_73db07958ed25a1ee2945e0a0d33df6e.css" rel="stylesheet" />

I’m not sure which one to pull the CSS from to run through the critical css generator. If I did it correctly, I’m not sure why that block from the theme is not setting correctly.

I’ve taken a screenshot of my plugin settings here: https://nimb.ws/gxPEjW

The site is supposed to look like this: https://nimb.ws/oDb1s7

But when I view it not logged in, it looks like this: https://nimb.ws/JDcYG6

Thanks in advance for your help.

  • This topic was modified 1 hour, 50 minutes ago by Tony Zeoli.

Deleted Cache now website is a mess

$
0
0

Replies: 0

The link above looks fine if I login as admin but it’s a mess if opened from any other computer. The home page https://www.vloghere.com/ is also fine. I deleted cache from Autoptimize menu to edit my CSS but now the website is a mess.

Please help.

Thank you

Reduce usage resources

$
0
0

Replies: 1

Hi there,

plugin cache 2.5 GB data in just one day, is there any way to reduce this data?

Thank you.

Error when installing the Plugin

$
0
0

Replies: 1

Hi,
I got the following error when I tried to install Autoptimize on my Wp.

Warning: require(/home/autoglas/public_html/wp-content/plugins/autoptimize/classes/external/php/persist-admin-notices-dismissal/persist-admin-notices-dismissal.php): failed to open stream: No such file or directory in /home/autoglas/public_html/wp-content/plugins/autoptimize/autoptimize.php on line 71 Fatal error: require(): Failed opening required ‘/home/autoglas/public_html/wp-content/plugins/autoptimize/classes/external/php/persist-admin-notices-dismissal/persist-admin-notices-dismissal.php’ (include_path=’.:/usr/local/php71/pear’) in /home/autoglas/publi

Inline JS Amazon Question

$
0
0

Replies: 0

When I use Autoptimize and check the option “Also aggregate inline JS?”, that seems to remove Amazon custom thumbnails which I use for certain posts on my site. I’ve tried excluding the specific script from Autoptimize, but it does not seem to return. The Amazon widget only returns when I disable aggregate inline JS.

Example of code for that widget:

<script type="text/javascript">
amzn_assoc_placement = "adunit0";
amzn_assoc_tracking_id = "persocentr-20";
amzn_assoc_ad_mode = "manual";
amzn_assoc_ad_type = "smart";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_linkid = "***";
amzn_assoc_design = "in_content";
amzn_assoc_asins = "B07G7YP27Q,1927925258";
</script>
<script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"></script>

I’ve tried excluding “//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US” and “onejs”, but those did not fix the issue.

This code has not been removed from the linked page, but the widget is not visible because aggregating inline JS is currently enabled.

  • This topic was modified 1 hour, 39 minutes ago by Reggy.
Viewing all 14063 articles
Browse latest View live


Latest Images