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

Images are not loading up

$
0
0

Replies: 2

Hi there , Images are not loading up at front end of my site? after checking Aggregate JS-files?. I tried all possible options to fix it , by disabling all plugins separately found it was autoptimize, kindly check the issue and resolve it


Local stylesheets out of order

$
0
0

Replies: 0

Hello,

I have experienced this issue in the past with some websites but this time it has frustrated me quite a bit and I’m looking to find a solution moving forward as I love the plugin otherwise.

We load our theme’s styles via a hook on “wp_enqeue_scripts”

A partial from the function:

    
wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/bootstrap/css/bootstrap.min.css', array(), '3.2' );
    wp_enqueue_style( 'font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', array(), '3.2' );    
    // Load our main stylesheet.
    wp_enqueue_style( 'theme-style', get_stylesheet_uri(), array('bootstrap'), '1.0.1' );

The issue is that bootstrap CSS is loaded after our theme-style, essentially overriding several styles. I added the bootstrap dependency in an effort to fix it, no change. Also, I temporarily unhooked the load of the font-awesome external style, no change.

From a comparison in our staging environment, the autoptimize aggregated CSS shows the theme-style at :1 and bootstrap at :37

Form for excluding files (css & js)

$
0
0

Replies: 1

Worderful plugin, thank you.

I find it hard to exclude css and js files writing all of them in one line, using your form of input. Also commas, semicolons etc makes things easy to mix and error, if the list is long.

Could we have a form for css and js that use one excluded file per line?

Prob with Shortpixel/images after upgrade to 2.6.1

$
0
0

Replies: 3

Hi guys,
After upgrading AO 2.5.1 in my staging environment, shortpixel seems to not be loading images. the AO.js may also have issues. I need to get this back online asap to migrate all recent upgrades to the site as well as new content to the production or live environment.

Here is a sample of the html from the clone912 (staging) upgraded to 2.6.1:

<img width=”1357″ height=”620″ src=”data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%201357%20620%22%3E%3C/svg%3E” data-src=”https://clone912&#8230;./wp-content/uploads/2019/07/…..’

Here is the same segment of HTML from the live environment still on 2.5.1:

<img width=”1357″ height=”620″ src=”https://www.[domain.com]/wp-content/uploads/2019/07/&#8230;..” data-src=”https://www.[domain.com]/wp-content……&#8217;

This seems to be the difference in loading images. I don’t know how to identify the cause other than ascribing it to the updated plugin. If you could point me in the right direction that would be a big help. Publishing the updated website and new content is on hold until this can be sorted.

Thanks,
Michael

Problem with category names -> &

$
0
0

Replies: 1

Hello,

Now I have a problem with category names that include “&”
For example

should be: Banking & Finance
and I have displayed Banking & Finance

where to fix this?

  • This topic was modified 13 hours, 30 minutes ago by mediaex.
  • This topic was modified 13 hours, 29 minutes ago by mediaex.
  • This topic was modified 13 hours, 28 minutes ago by mediaex.

Disable lazy load on an entire page?

$
0
0

Replies: 1

Hello. With your lazy load feature, there is an option to exclude images of a certain name or class (screenshot). But is there a way to exclude entire pages from lazy load?

With a previous plugin (Lazy Load by Rocket), they had a PHP filter hook one could use to disable their lazy loading on certain pages (add_filter( 'do_rocket_lazyload', '__return_false' );). Just curious if you have something similar.

Thanks.

Exclude Elementor section/widget from optimization

$
0
0

Replies: 5

Hi, I was wondering if it’s possible to exclude a specific Elementor element from optimization. In my case, this would be the smart listing grid, since it’s not functioning properly and gets a different compared to the other elements on the page with te same settings when autoptimize is turned on.

Would I perhaps have to give the section a css class? I’m not really that familiar with coding ;p

Thanks in advance!

Christiaan

PHP check for lazy load?

$
0
0

Replies: 4

Is there a reliable PHP hook or function I can use to check if the Autoptimize lazy load feature is activated?


Image optimization returns 404

Exclude plugin/scripts – need a little help

$
0
0

Replies: 3

OK: fixed! Disabling the option: ‘Async JavaScript For Plugins’ in where I checked Autoptimize did the trick. So only read the first sentence Frank:-)

Hey Frank!

First of all: great plugin! It made my websites a lot and I mean a lot faster!

I do however need a little help setting up a pop-up plugin, Convert Pro.

I use the ‘pro’ version, which includes two plugins: convertpro and converpro-addon.

Running: Autoptimize and Async JS

What I did:

1. First I tried excluding the main JS-files from the plugin without succes
2. Then I excluded the entire plugin(s) on both Autoptimize and Async (wp-content/plugins/convertpro/)
3. When I disable Autoptimize the pop-up works.

What am I missing?

The current setup, as live, is #2, so with the complete plugins disabled and the popup is active on all pages.

Hope you can help!

Ruud

  • This topic was modified 4 hours, 10 minutes ago by brightidiots.
  • This topic was modified 4 hours, 10 minutes ago by brightidiots.

Cache Directory

$
0
0

Replies: 0

According to the FAQ I’m able to change the default autoptimize cache directory using the following lines:

define(‘AUTOPTIMIZE_CACHE_CHILD_DIR’,’/resources/’);
define(‘AUTOPTIMIZE_CACHEFILE_PREFIX’,’aggregated_’);

However, doing this causes autoptimize to read / write files to wp-content/resources/

What if I want, autoptimize to read / write to /var/tmp/resources/

It keeps re-writing every URL attempt into /var/www/site/wp-content/resources

Pictures not visible – Optimize JS code & Redux

$
0
0

Replies: 1

All .jpg’s and .png’s on my website are NOT visible. I determined that the issue is with autoptimze so I UNclicked Optimize JS code and now all pictures ARE visible.

Is there any way to use js compression without breaking the Redux scripts because the jpg’s and png’s are good but they are not loading due to redux scripts being broken. The only way I can see the pics is by having the
Optimize JavaScript Code UNchecked.

I have a screenshot of the WordPress Admin area but don’t see an option to attach it here

Do you know what the issue is?

Is there anything I need to do on my end to correct this issue?

Can I exclude images from lazy load by specifying a CSS selector?

$
0
0

Replies: 1

I’m trying to exclude certain images from your lazy load feature, using the Lazy-load exclusions section (screenshot). I understand that, in this field I can specify an image file name, and in-turn that image will be excluded from lazy load. Alternatively, I can add a custom class to an tag, and specify that custom class in this field. In-turn, that will be excluded from lazy load. But, in this Lazy-load exclusions field, can I specify a CSS-selector indicating which tags to exclude? For example, on my site, I’d like to exclude all tags which are inside the class .slides (screenshot). Would it be possible to somehow exclude these from lazy load without having to give each tag a custom class?

In this case, I *can* give each tag a custom class. But it would make my life slightly easier if I didn’t have to 🙂 So I just thought I’d ask.

Thanks.

Is this kind of optimization of meta description standard procedure?

$
0
0

Replies: 3

Hello,
This is hopefully a fast/short question.

I’m running Autoptimize, Yoast Seo on my Avada theme web site.

My meta description snippet applied through Yoast SEO doesn’t show in the google search results. Instead it’s just X number of words from the site’s first paragraph.

So I’m trouble shooting.

What I noticed through the source code is that: yoast by default add:

<meta name=”description” content=”lorem ipsum”/>

When I activate Autoptimize, it get’s shortened to:

<meta name=description content=”Lorem Ipsum”>

So the quotation marks around description disappears aswell as the slash.

Could that be the reason for why my meta description doesn’t show on google search result or is that shortening standard precedure? 🙂
If it’s not, what can I do?

Images do not display after adding custom class

$
0
0

Replies: 1

I’m back, with a follow up question to the previous lazy load question. I am trying to add a custom class to each tag, so I can then exclude them from lazy load. I have added that class to my tags. But now, when I load my page, these images don’t display at all. Here is a screenshot illustrating the issue. This screenshot is for one image, but the same occurs for all images in my slider (i.e. all images with this custom class), even as they slide into view.

To be clear, I still have the Autoptimize lazy load enabled, but I have not yet added a custom class to the lazy-load exclusions field (it is still empty). If I disable Autoptimize lazy load, the issue is still present. But if I deactivate Autoptimize, the issue goes away.

I’ve tried clearing the Autoptimize cache, and the browser cache, but to no avail.

One additional oddity is that this issue occurs on my live site. I have a private clone of my site that I use for testing and development–the issue does *not* occur on my dev site. Curious.

Thoughts on that?

Currently, I’ve removed the custom class from my site, so unfortunately you cannot see it in-action. If it really helps though, I could perhaps re-add the custom class on my live site, so you could see the issue in-action. That would of course break my home page slightly (i.e. display blank images in the main image slider), so I would need that to be relatively short duration.


Lazyload w3 resource

$
0
0

Replies: 1

Hi,

When having lazy load activated, images use src='data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg...

Shouldn’t this resource <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> be https instead of http?

I’m trying to fix some mixed content issues on my site. Not sure if this has anything to do with it, but I thought I should ask.

Thanks!

JQMIGRATE

$
0
0

Replies: 0

Hey Frank,

One more questions… I get this message in the console related to the css file Autoptimize creates

JQMIGRATE: Migrate is installed, version 1.4.1

I’ve seen older threads about this, but they are years old and I was wondering if there’s anything that can be done about this now.

Thanks!

How to delete Autoptimize cache?

$
0
0

Replies: 1

I get an email every 12 hours about my Autoptimize plug-in getting big.

The FAQ advises that I can delete the cache and I have looked at several answers on this forum where people say it is OK to delete the cache occasionally.

My question: how can I delete the cache from inside WordPress?

If I go into the plugin settings, at the bottom are two buttons “Save Changes” and “Save Changes and Empty Cache”.

If I press the Save Changes and Empty Cache button, the red warning inside the WP console turns green, but I still get the email with the warning at the same time every 12 hours.

And when I log in again, the warning is back.

In the Cache Info box, for

Cached styles and scripts

it says

2929 files, totalling 2.22 GB Kbytes (calculated at 17:21 UTC)

It also gives the folder path to the cache. Should I go in through FTP and delete files?

exclude 1 inline script

$
0
0

Replies: 0

Hi, thank you for great plugin 😉

I want to use “Also aggregate inline JS” but I need to make exception for 1 single script
Is there a way how to do it? some data parameter like:
<script data-exclude="true">var something = 123</script>
or any other way how to do it?

Thank you 😉

Add Expires headers with autoptimize

$
0
0

Replies: 7

Hi I been having problems with this on gt metrix, Add Expires headers, I saw in another post and they suggest to untick the “serve as static files” but in my case it doesn’t work… and the other thing is in google show me
Remove resources that block rendering and before I didn’t have that suggestion start to show when I removed autoptimize (trying to see if with other pluggin works best), and when I re installed started to show me bouth suggestions ADD EXPIRES HEADERS AND REMOVE RESOURCES THAT BLOCK RENDERING… I really hope someone can help me, I tried with another plugins but autoptomize works so much better in my site… maybe was my mistake to removed and then re-installed? Thanks for your time and I hope your answer.

  • This topic was modified 14 hours, 58 minutes ago by nubyh.
Viewing all 14038 articles
Browse latest View live


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