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

deactivating plugin makes problems

$
0
0

Replies: 3

Hi,

I want to deactivate the plugin. After I´ve done this, my sites makes several problems.

For example parts of my style.css loads not correctly and the design of my site crashes.

What could the problem be?


Cache growing to over 1GB in a week

$
0
0

Replies: 1

I didn’t empty Autoptimize’s cache for just a few days, and when I logged into my site I saw that the “Autoptimize” link with the circle at the top of my dashboard is red. When hovering over it, it said the cache size was over 1.2 GB in size. Is it support to be so big?

This is the second time this happens in a month or two.
My whole website isn’t even 400MB in total size…

Why is it creating a huge cache?
Is there any way to stop it?

CONTRIBUTION: Autoptimize Cache Size Under Control By Schedule Auto-cache Purge

$
0
0

Replies: 1

Autoptimize does not have its proper cache purging mechanism, and it does display a notice on the administration pages if the cache size surpasses the half a Gigabyte mark. But it does not automatically purge the cache.

Here is an updated quick solution which can keep the cache size under control without adding any extra cron jobs.

As an example, I have limited the cache upto 256MB, and you need to add this code inside functions.php file of your activated theme.


# Automatically clear autoptimizeCache if it goes beyond 256MB
if (class_exists('autoptimizeCache')) {
    $myMaxSize = 256000; # You may change this value to lower like 100000 for 100MB if you have limited server space
    $statArr=autoptimizeCache::stats();
    $cacheSize=round($statArr[1]/1024);

    if ($cacheSize>$myMaxSize){
       autoptimizeCache::clearall();
       header("Refresh:0"); # Refresh the page so that autoptimize can create new cache files and it does breaks the page after clearall.
    }
}

Note: Even if you deactivate the plugin, this code will not create any fatal error as it does check if plugin is activated by checking its class_exists

Uncaught TypeError

$
0
0

Replies: 11

Hi Guys,

When loading my page the only error I have is the following:

Uncaught TypeError: $ is not a function
at autoptimize_7d81ce8….php:4369
(anonymous) @ autoptimize_7d81ce8….php:4369

The affected line is the following:


;$(function($){"use strict";function insertParam(key,value){key=encodeURI(key);value=encodeURI(value);var kvp=document.location.search.substr(1).split('&');var i=kvp.length;var x;while(i--){x=kvp[i].split('=');if(x[0]==key){x[1]=value;kvp[i]=x.join('=');break;}}

I do not know what this error is, any solution?

Autoptimize on subdomains

$
0
0

Replies: 7

Hi there,

I’m serving my plugins and the remaining content from two different subdomains.

static1.mydomain.com for plugins only, static2.mydomain.com for all other folders of wp-content.

Means:

1. Autoptimize as a plugin is stored on static1, the cache folder for Autoptimize on static2.

2. JS and CSS files of plugins from plugins are served from static1, JS and CSS files from the theme etc. are served from static2.

I’ve checked the options “optimze js” and “optimize css”, “save combined css/script files as static files”, base cdn url is empty.

The cache folder has the correct full path “/home/www/static2.mydomain.com/cache/autoptimize/ and the folder is also writeable.

For some reason, Autoptimize doesn’t build any cache files.

Could your please help?

Thanks and best regards
Carsten

Cache size grows because of timestamp generated in plugin .php, how to exclude?

$
0
0

Replies: 3

Hello,

Autoptimize cache size is growing like crazy, I took a look and located that it is because of the code found in convertplug/modules/modal/modal.php:

var timerID = null;
var timerRunning = false;
var x = new Date() ;
var now = x.getTime() ;
var gmt = <?php echo time(); ?> * 1000 ;
var diffms = (now – gmt) ;

Please help me to find solution. It is not a separate JS, so I cannot add it to the list of excluded files.

Above the fold

$
0
0

Replies: 0

Hi,
I have a lot of css and js files blocking Above-the-fold content. I’ve seen the video https://www.youtube.com/watch?v=k56E_7SFQoE, but I have some questions:
– Can I do the same for javascrip files?
– What can I do if I have more then one link to optimize?
– Can I create critical path css also for external link?

Thanks!
Ositive

Css Critical Path order

$
0
0

Replies: 1

Hi there,

is there a way to choose the right “order” of CSS Critical Path? I mean: I would like to include it after <title> and not before.

Is it possible?

Thanks


Contact Form 7 : CSS implementation barred

$
0
0

Replies: 0

I am currently using Autoptimize for a particular Website and installed Contact Form 7 Plugin. I want to enhance the CF7 by modifying the CSS files like fields, text areas and buttons etc. Whenever I am trying to edit something, for say, Button, it is not updating irrespective of the file. Though the particular element edits under the ‘FireBug’/ ‘Chrome Inspect’ when I start testing it but not in the server.
I can see several Cached CSS files through “FireBug” under the Wp-Content/Cache/Autoptimize/CSS but don’t know where to edit it. What to do with them? I am fairly new with this Plugin.
Also, will it affect the site if I deactivate or remove the Plugin?
Kindly advice as this is urgent !!

Flow Flow plugin not working with Autoptimized

$
0
0

Replies: 16

I have flow flow plugin activated in my website. To enchance the performance and page speed, I have been using Autoptimize. When autoptimize is activated, the flow flow plugin does not show the social streams. On deactivating, the social feed appears. Can you please help me out with this.

Unable To Deactivate “Inline and Defer CSS”

$
0
0

Replies: 4

Hi there,

I activated the option to Inline and Defer CSS but I found some of the changes were undesirable with the theme I’m using.

However now when I try to deactivate the option, the setting remains checked even after saving and emptying cache. It appears I can’t turn this function off without removing all CSS optimization?

Please can you advise the steps any help with getting this working as expected?

Thanks so much for your help

Social Warfare – Not Updating Social Share Counts

$
0
0

Replies: 0

Hi

I’m using the Autoptimize plug-in (thanks) on my site and also have the Social Warfare plug-in.

I noticed that the social share counts were not updating. After raising a Support ticket with Social Warfare, they told me that it may not be working due to a conflict with Autoptimize. I’ve gone back to quizz them further but not heard back.

When I de-activate Autoptimize the share counts increase. Activating and de-activating is not a good solution.

On searching for an answer I’ve seen a reference to this https://wordpress.org/support/topic/conflict-with-autoptimize-plugin-2/page/2/ exclude plugins/social-warfare/js/ from JS optimization (as your original JS error complained about that) (4th post down by @@futtta ).

I’m not technical. Can someone explain exactly what I need to do.

Many thanks in advance for your help.

Chris

nothing was rendered

$
0
0

Replies: 1

Poof! Blank page, configured plugin every which way and only ever get “The URL was fetched, but nothing was rendered. Ensure that the URL points to an HTML page that loads successfully in a web browser.” for google page speed. What gives? Thanks
http://www.crkiosk.org

Not able to resolve Defer parsing speed issues

Windows Explorer Not Loading

$
0
0

Replies: 3

no error code, but its a continous loading symbol… it’s not loading with explorer and when it’s being used with pingdom the image doesn’t generate


RTL Direction

$
0
0

Replies: 1

Hello
I want to optimize delivery of css files
I follow the steps to do so
I have copied the file in path “content/cache/autoptimize/css/autoptimize_12323”
and optimize the code with critical path css generator
and add in “inline and defer CSS”
but when I do so the layout change to left to right (my default layout is RTL right to left)
does the plugins support RTL direction
what should I do to prevent this issue
Please advice

RTL Direction problem

$
0
0

Replies: 1

Hello
I want to optimize delivery of css files I read stps and follow https://wordpress.org/plugins/autoptimize/faq/
after css file and optimize the code with critical path css generator
and add in “inline and defer CSS”
but when I do so the layout change to left to right (my default layout is RTL right to left)
does the plugins support RTL direction
what should I do to prevent this issue
Please advice

CDN with multiple background images.

$
0
0

Replies: 1

Hey,

Awesome plugin. It “just worked” except for one little thing. I have multiple background images defined in CSS like this:

background-image: url("images/under-left-leaf.png"), url("images/over-blue-bird.png"), url("images/under-top.png"), url("images/bg-top-grunge.png");

After this goes through autoptimize it only applies the CDN to the first image, like this ( theme-cdn.dtbaker.net is the CDN address, verge-blog-demo.themes.dtbaker.net is the hostname )

background-image:url(https://theme-cdn.dtbaker.net/wp-content/themes/verge-blog/images/under-left-leaf.png),url(//verge-blog-demo.themes.dtbaker.net/wp-content/themes/verge-blog/images/over-blue-bird.png),url(//verge-blog-demo.themes.dtbaker.net/wp-content/themes/verge-blog/images/under-top.png),url(//verge-blog-demo.themes.dtbaker.net/wp-content/themes/verge-blog/images/bg-top-grunge.png);

Do you accept pull requests via github? I could submit a patch if you like.

Thanks,
dtbaker

Gravatar and Jetpack reamaining

$
0
0

Css optimized appears inside comment html and dont render

$
0
0

Replies: 0

Hi, I’m trying to use autoptimize. My main web page is https://colsalud.com. When applying css optimization the page does not apply any style. I have created a clone of the page to do tests https://clon.colsalud.com and I discovered when reviewing the source code of the page that all code minimized by optimize corresponding to the css appears inside comment html (<- – ->), for that reason does not load any style. Could you help me figure out why this happens? First I thought it was wp super cache; Disable it and continue the error; Then I thought it was the security plugin, disable wordfence and continue the error.

Viewing all 14049 articles
Browse latest View live


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