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

Good way of adding javascript before last body

$
0
0

Replies: 1

Hello, I wanted to check if this is the good way of adding some javascript.

I am trying to add the linkedin insight tag to my site, and I am suppposed to add the js code before the last body.

Problem is that AO is not letting the code be…because of the optimizing features… So I ended up copying the code into a js file that I excluded from AO. But is that working ? (not sure…I guess it should work too…this way…)

Is there another way to do this ? Can”t I copy and paste directly the javascript instead of adding a request to a js file ?

or I did it the right way?

thanks.


Sudden Avoid document.write() error in some pages

Reduce Server Response time and SLOW TTFB in webpagetest.org

$
0
0

Replies: 0

Hi,
When I test my page with webpagetest.org then showing First Byte Time C and in google pagespeed insights it is showing Reduce server response time error.
How to resolve the issue?
We are using 8VCPU with Google cloud server.
Is it server issue?

Autoptimize JS issues breaking site functionality after a user logs

$
0
0

Replies: 0

Hi,
I am using AO and configured it by trial and error which does not break my website functionality. But I find no Luck some or the other issues come up. I also decided to deactivate it but the whole website breaks then I do so even after clearing the cache.

Now the problem appears after someone logs in. They are unable to see a few things also some functionality does not work like the add media button or Wyswing content-box.

I don’t know how to solve the issues or how to safely remove Autoptimize. Also few of my images breaks

Minify JavaScript for the following resources to reduce their size by 102B

$
0
0

Replies: 0

On GTMetrix’s PageSpeed tab, I have everything at 100 percent score except: “Minify Javascript” — which scores at 90 percent.

GTMetrix says the issue is of “High” Priority to resolve. The actual error message is:

“Minify JavaScript for the following resources to reduce their size by 102B (1% reduction).”

GTMetrix then gives the name of the Autoptimize JavaScript file causing this issue (I do not want to paste it here as it includes my site address).

I assumed that this problem could not be resolved. However, earlier today, I noticed that GTMetrix actually also gives an optimized version of the Autoptimize JavaScript file (at the end of the error message) that you can download!

So is there anyway that Autoptimize can update their plugin by using the optimized version of this particular JavaScript file that GTMetrix provides for free?

Thanks.

Autoptimize JS or Deactivate Unused Plug-ins

$
0
0

Replies: 0

In all honesty which is more worthwhile here? In order to deactivate unused plugins (on distinct pages) I am quite confident I’ll need to not congregate my JS together (at least for the plugins). Therefore I am left to evaluate one or the other?

Or is this incorrect?

  • This topic was modified 9 minutes ago by ttattini.

ShortPixel image optimization vs your CDN quota used

$
0
0

Replies: 0

hi! I am seeing this report “ShortPixel image optimization vs your CDN quota used” what’s that means and what can i do it?

picture not fully loaded despite high internet speed


Google fonts “combine and link deferred” results in faulty request string

$
0
0

Replies: 1

Hiya, I’ve had a problem related to AO’s Google fonts handling in recent versions.

I was previously using “combine and preload” for my font handling, but since that’s unavailable for now I tried other options. However, “combine and link deferred” gives a weird result with my theme.

In the console it appears as a javascript error due to MIME type mismatch, but the real problem is that the request string in the page source is coming out as https://fonts.googleapis.com/css?family=&display=swap. Which obviously doesn’t exist.

In case it’s important, I’m loading my fonts using wp_enqueue_style and the embed string from Google Fonts itself. Like so:

wp_enqueue_style( 'google-fonts', 'https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@700&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=fallback', false );

Any idea if this is a problem with AO? Or am I doing something unexpected with my fonts?

Thanks for your time! (And your ongoing work with AO, which has been invaluable to my builds.)

  • This topic was modified 49 minutes ago by Fox Lee.

Lazy loading & HTML Validation

$
0
0

Replies: 3

Hi,

When i try to validate html I get this error. Should I Ignore

Error: Element style not allowed as child of element noscript in this context. (Suppressing further errors from this subtree.)
From line 403, column 11; to line 403, column 17
<noscript><style>.lazyl
Contexts in which element style may be used:
Where metadata content is expected.
In a noscript element that is a child of a head element.
Content model for element noscript:
When scripting is disabled, in a head element: in any order, zero or more link elements, zero or more style elements, and zero or more meta elements.
When scripting is disabled, not in a head element: transparent, but there must be no noscript element descendants.
Otherwise: text that conforms to the requirements given in the prose.

Aggregate JS-files? is ON – Google Maps is not showing

$
0
0

Replies: 0

Hi,
Since the last either WordPress Update or Autoptimize update, Google Maps are not showing anymore when “Aggregate JS-files?” is activated. (see Homepage “ADRESSE”) There is no error in the Console regarding this issue.
There is, however, the problem with color-picker.min.js, which belongs to DIVI and I will solve it with them.
I tried to install and activate “jQuery Migrate Helper” as you have mentioned when updating to WP 5.5. Unfortunately, there is no difference. I am using the Divi Map Modul.
When I deactivate “Aggregate JS-files?”, everything is working fine.
Any Ideas?
Best Regards,
Chris

site break

$
0
0

Replies: 1

When I enable Aggregate CSS-files then my website breaks. How can I solve it?

The cache is deleted after modifying a page with Divi

$
0
0

Replies: 0

Hello,

I have been using the plugin for a while and everything is working fine except for one thing.

I use Divi, and WP Fastest Cache (by disabling CSS and JS minification of course)

The problem is: As soon as I edit a page/article or as soon as I create a page/article, all the WPFC and AO cache are deleted.

At first I thought it was from WPFC. I then uninstalled WPFC and keep AO installed: the cache is deleted by itself after having modified or created a page/article.

I then did the opposite, I uninstalled AO and keep WPFC installed: and there the cache is not deleted

I contacted Divi support, he told me to see directly with AO.

I do not know what to do …

Thank you for your help !

Some links are not clickable On mobile devices

Lazy-Load Causing Strange URL Rewritting and 404 Errors

$
0
0

Replies: 2

So this is a weird one.

When lazy-load is on, certain images on my site are loaded multiple times, but with different, invalid URLs. Check out the waterfall on the linked GTmetrix report to see what I mean.

It looks like it might be rewriting the URL to serve it on ShortPixel, but doesn’t replace ‘mydomain.com’ with ‘cdn.shortpixel.ai/client/q_lossless,ret_img/’.

To make it even more frustrating, I can’t get this issue to appear consistently across different servers/browsers; the bug appears consistently on GTmetrix and Pingdom, but only occasionally on my PC with Firefox, and never on PageSpeed Insights.

I recently updated to WP 5.5, but can’t say for certain if that is related. Installing ‘Enable jQuery Migrate Helper’ didn’t fix the issue.


Ninja Forms not showing with Aggregated JS

$
0
0

Replies: 2

After the 5.5 update, 6 of my 7 sites are working with no problem at all.

But on one site, when I aggregate JS, my Ninja Forms won’t display.

I have managed to solve the problem in two ways. One don’t aggregate, or two, aggregate and use the Jquery Migrate Helper.

The only difference between this one site and the others, is that I need js/jquery/jquery.js excluded to run a social media display plugin.

If I don’t exclude js/jquery/jquery.js, Ninja Forms display correctly.

I’m tearing my hair out a bit, so any suggestions you might have would be most welcome.

Hey guys need help | [Violation] Added non-passive

$
0
0

Replies: 2

hey, how are you guys?
i have an issue from the latest WordPress update to 5.5…
i needed to install JQmigrate tester… and i found out on this error here:
screenshot:
https://ibb.co/LNjQSVM

i know is from the PHP of autoptimize… don’t know why…
i use Mesmerize Theme in a combination of autoptimize…

please if have a solution to fix this Violation autoptimze show me.. is be good

Thanks to all the helpers 🙂

Images Not Displayed

$
0
0

Replies: 0

Hi! After installing this plugin, the “clients” logos/images are not shown anymore, not sure why. How can I fix this?

site is broken after cache from autoptiize

$
0
0

Replies: 1

my site is totally broken after clearing cache and I reload the page so many times it still has broken then I deactivate autoptimize plugin but the problem remain same but it properly showing in elementor. how thisproblem can be solved?

Includes front-end JavaScript libraries with known security issue in lighthouse

$
0
0

Replies: 5

Hi,
We are facing this error in lighthouse test
Includes front-end JavaScript libraries with known security issues detected

Some third-party scripts may contain known security issues that is easily identified and exploited by attackers. Learn more.
Library Version-jQuery@1.12.4
Count-4
Highest Severity-Medium
How to get rid of this?
Thanks,

  • This topic was modified 1 day, 8 hours ago by zo.
Viewing all 14038 articles
Browse latest View live


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