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

How to optimize Js files

$
0
0

Replies: 1

How to optimize Js files located on remote server?


Udpate CSS filename when clearing cache

$
0
0

Replies: 0

It seems like the minified css file keeps the same filename.
Is there a feature in Autoptimise to rename, or suffix CSS filenames, so that the previous visitors coming back to a website load the fresh CSS file?

kkstar issue

$
0
0

Replies: 1

i am using kk start on this website
https://nutri-science.fr/meilleur-bruleur-graisse/
problem is that kk start does not load some times my developer is saying that this is due to autoptimize plugin and java script is not loading properly.
can some one guide me what to do ?

CSS absolute measurements found in

Adding nonce to scripts for Content Security Policy?

Autoptimize is causing Google Analytics AB Test Code to fail

$
0
0

Replies: 1

Hi Plugin Developer,

We have been experiencing issues with the Autoptimize plugin not working with GA’s AB experiment code.
Whenever the Autoptimize plugin is activated, GA is returning the below errors:
– No experiment code found.
– No Google Analytics tracking code found.

When Autoptimize is deactivated, no errors.

We have already tried adding <!–noptimize–>…<!–/noptimize–> tags for the AB experiment codes as well as for the GA code, but the issue persists.

Please help! Thanks!

Scripts not optimized

$
0
0

Replies: 0

After installing AO and turning the optimization options, I still see all these scripts not being aggregated or minified. Why?

script type='text/javascript' src='https://mydomain.com/wp-includes/js/jquery/ui/core.min.js' defer onload=''></script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/jquery/ui/widget.min.js' defer onload=''></script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/jquery/ui/tabs.min.js' defer onload=''></script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/jquery/ui/mouse.min.js' defer onload=''></script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/jquery/ui/resizable.min.js' defer onload=''></script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/jquery/ui/draggable.min.js' defer onload=''></script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/jquery/ui/button.min.js' defer onload=''></script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/jquery/ui/position.min.js' defer onload=''></script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/jquery/ui/dialog.min.js' defer onload=''></script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/jquery/ui/datepicker.min.js' defer onload=''></script>
<script type='text/javascript'>
jQuery(document).ready(function(jQuery){jQuery.datepicker.setDefaults({"closeText":"Close","currentText":"Today","monthNames":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthNamesShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"nextText":"Next","prevText":"Previous","dayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dayNamesShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayNamesMin":["S","M","T","W","T","F","S"],"dateFormat":"MM d, yy","firstDay":0,"isRTL":false});});
</script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/jquery/ui/menu.min.js' defer onload=''></script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/wp-a11y.min.js' defer onload=''></script>
<script type='text/javascript'>
/* <![CDATA[ */
var uiAutocompleteL10n = {"noResults":"No results found.","oneResult":"1 result found. Use up and down arrow keys to navigate.","manyResults":"%d results found. Use up and down arrow keys to navigate.","itemSelected":"Item selected."};
/* ]]> */
</script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/jquery/ui/autocomplete.min.js' defer onload=''></script>
<script type='text/javascript' src='https://mydomain.com/wp-includes/js/admin-bar.min.js' defer onload=''></script>
<script type='text/javascript' src='https://mydomain.com/wp-content/themes/mytheme/js/footer-scripts.js' defer onload=''></script>

Autoptimize breaks Google Optimize

$
0
0

Replies: 3

I recently implemented Google Optimize in the header.php of my website following the steps on the Lunametrics website.

Unfortunately, Google Optimize didn’t work. I discovered that it does work when Autoptimize is turned off. Is there a way to exclude the Google Optimize code from Autoptimize?

This is the code that is written in the header.php file:

<!-- Page hiding snippet (recommended)  -->
<style>.async-hide { opacity: 0 !important} </style>
<script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
})(window,document.documentElement,'async-hide','dataLayer',4000,
{'GTM-XXXXXX':true});</script>
 
<!-- end Optimize Page Hiding Snippet -->
 
 
<!-- Analytics-Optimize Snippet -->
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-XXXXXX', 'auto');
  ga('require', 'GTM-XXXXXX');
</script>
 
<!-- end Analytics-Optimize Snippet -->

I’d love to know if there is a solution since I really want to use both, thanks 🙂


Optimize CSS Delivery of Google hosted jquery-ui.min.css file

Essential Grid Error MS Edge

$
0
0

Replies: 1

I am experiencing issues with Essential Grid, on the MS Edge & Firefox browsers, that I do not experience on Chrome, due to Autoptimize. I’ve tested to confirm that it is in fact the Autoptimize plugin, by adding ” ?ao_noptimize=1 ” to the URL.

Any suggestions?

Thank you,
Javier

Huge Size in an hour or two

$
0
0

Replies: 1

My site has about 40K+ pates. Daily pageviews is now 500-800. I’ve started using AO for 2 days. It seems top AO shows red circle that blinking and the size is 2GB+ but I cleared cache 2 hours ago. Why so huge cache so fast? Is it possible to set auto cache clear? Thanks!

Max Mega Menu style error

$
0
0

Replies: 0

Hi,
I am using Max Mega Menu plugin. But no customization on WordPress theme custom css is working for Max Mega Menu after activating your plugin. How to exclude those codes of Max Mega Menu customization???

Whitelist the login screen, prevent caching?

$
0
0

Replies: 0

Hi, I just changed my login screen with another plugin. The plugin said that if I had a caching plugin on my site that I needed to “whitelist” the login page to avoid it being picked up by attackers. I went to the Autoptimize ‘options’ and saw no option to prevent the login screen from being cached. How would I whitelist my new custom login page to prevent it from being cached by Autoptimize?

Relative URL Issue

$
0
0

Replies: 1

I have a problem.

In CSS files, both plugins and theme, if I set the url as follows: ../image/test.jpg, in the combination of the files the plugin Autoptimize rewrites the URL as follows: https://site.com /wp-content/cache/../image/test.jpg.

How can I solve this problem?

Broken Link

$
0
0

Replies: 0

I fond the broken links in my website which are:

1. domain/wp-content/cache/autoptimize_a839e628bac3e667053a8f4828c8a1c5.css
2. domain/wp-content/cache/autoptimize_a1aec9dc68fd4e0410ad57ae563d9201.css

many times I have tried to delete them but they are still there. Could you tell me how to remove them?


debug.log Avada Autoptimize line 181,213,197,229,483

$
0
0

Replies: 0

Hello,
I´m using the Theme Avada, PHP 7.2.7 and when debug is on I get the information:

[06-Aug-2018 18:11:47 UTC] PHP Deprecated: Function create_function() is … augsburg-webdesign.com/httpd.www/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line 98
[06-Aug-2018 18:11:47 UTC] PHP Deprecated: Function create_function() is … augsburg-webdesign.com/httpd.www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 181
[06-Aug-2018 18:11:47 UTC] PHP Deprecated: Function create_function() is … augsburg-webdesign.com/httpd.www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 213
[06-Aug-2018 18:11:47 UTC] PHP Deprecated: Function create_function() is … augsburg-webdesign.com/httpd.www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 197
[06-Aug-2018 18:11:47 UTC] PHP Deprecated: Function create_function() is … augsburg-webdesign.com/httpd.www/wp-content/plugins/autoptimize/classes/autoptimizeBase.php on line 229
[06-Aug-2018 18:11:47 UTC] PHP Deprecated: Function create_function() is … augsburg-webdesign.com/httpd.www/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php on line 483

Perhaps you can solve the problem? with the next update?
Regards
Rainer

Javascript problem with Inspiry Real Homes Theme?

$
0
0

Replies: 0

My Problem.
After clicking on ‘Send Message’ to Agent shown the page https://www.utilarealestateagent.com/utila-real-estate/homes-for-sale-casa-de-playa/ , the ‘webpage’ https://www.utilarealestateagent.com/wordpress/wp-admin/admin-ajax.php is displayed with the text {“success”:true,”message”:”Message Sent Successfully!”}
The email message is received as expected.

If the Autoptimize plugin is deactivated then;
https://www.utilarealestateagent.com/wordpress/wp-admin/admin-ajax.php with the text {“success”:true,”message”:”Message Sent Successfully!”} is NOT displayed, and “Message Sent Successfully!” is displayed on https://www.utilarealestateagent.com/utila-real-estate/homes-for-sale-casa-de-playa/ as expected.

Autoptimize plugin is configured with Exclude scripts from Autoptimize = jquery.js,jquery-migrate.min.js,infobox.js

Perhaps another javascript needs to be included in excluded scripts list?
Otherwise Autoptimize is working without problems.
Thank you for any assistance/advice you can provide.

Breaks jQuery scripts

$
0
0

Replies: 0

If I enable javascript optimization I start getting errors like
Uncaught TypeError: jQuery(…).some-plugin-script is not a function ...

I would like to optimize scripts, including these broken scripts if it can be done.

How cam I fix the problems and still get the most optimization?

Unknown files in Autoptimize plugins directory

$
0
0

Replies: 1

Hello,

I have found an unknown file named ibgwjdao.php in Autoptimize plugin directory when I tried to backup my site today. Is this file belong to this plugin because I don’t think so. If not, then I will delete it since it supposedly won’t affect this plugin. Looking forward to your reply.

Screenshot: http://prntscr.com/kgg9vi

Autoptimize CSS loading after Bootstrap CSS

$
0
0

Replies: 1

Hello,

I’ve used AO for some time, across a number of sites. However, on one particular site, I see that AO is loading before Bootstrap CSS. The load order is correct with AO deactivated (e.g. bootstrap.min.css –> style.css). The bootstrap css is delivered via CDN.

How does AO handle CSS load order? Does it not wait for bootstrap.min.css to load? I do have the styles registered/enqued and boostrap is passed as a dependency for my basic style.css file.

Viewing all 14046 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>