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

Uncaught SyntaxError: Unexpected end of input

$
0
0

Replies: 3

hi,
I am getting an “Uncaught SyntaxError: Unexpected end of input” on the page link attached to this post and other errors.
These errors don’t appear when I logged in as an admin to the dashboard of WordPress.
thanks
Ahmed


Uncaught ReferenceError: Webfont not defined (in Jupiter X theme)

$
0
0

Replies: 0

Hey Auto-optimize,

Thank you for making the plugin, you reduced my requests by 70% and increased my page speed and such, according to GTMetrix. Though There’s an error on my website which I can’t seem to solve. I saw the topic below, but it doesn’t work if I change “jupiter” to “jupiterx”. When I view the page source I do however find something called: “jupiterx-webfont.js”

https://wordpress.org/support/topic/error-uncaught-referenceerror-webfont-is-not-defined-2/

The error is:

Uncaught ReferenceError: WebFont is not defined
    at <anonymous>:1:1
    at t.activateScript (rocket-loader.min.js:1)
    at rocket-loader.min.js:1
    at t.run (rocket-loader.min.js:1)
    at rocket-loader.min.js:1
    at HTMLScriptElement.<anonymous> (rocket-loader.min.js:1)

Where rocket-loader is cloudflare’s rocketloader. Do you have an idea on how to fix this perhaps?

Kind regards,
Wesley

Breaks PDF Embedder Premium

$
0
0

Replies: 3

Hi

With Autoptimize off the page renders correctly. When it is enabled – the PDF plugin malfunctions. Can you please advise what to do.

Thanks

Suggestion – Backup and Restore Current Settings

$
0
0

Replies: 1

Hi Frank,

My site has been running along very smoothly for the last 12 months thanks to you guys. That said, with all the changes and updates in the plugin, I wan’t to now start playing a bit more. What I am worried about with so many options is starting to make the changes and messing up to a point that I can’t get back. I know there are a lot of backup options but it would be great if there was one just for autoptimize. If there is already, I’ve missed seeing it but it would be great if I could just backup or restore existing right from the settings page of autoptimize. Anyway, thanks for everything and Happy New Year.

Autoptimize blocks rich text editor

$
0
0

Replies: 1

Autoptimize blocks the rich text editor in the front-end form

  • This topic was modified 2 hours, 37 minutes ago by fortunewave.

Images on mobile disappear with ShortPixel CDN

$
0
0

Replies: 16

Hello,
All images disappear on our wordpress site when we activate the ShortPixel CDN option in Autoptimize and view on mobile browser. They work on desktop browsers, tried with Chrome and Safari on iphone. We have ShortPixel plugin already running and using SiteGround Optimizer (without image processing option selected).
Any advise?
Nigel

The top render blocking resource is now autoptimize.css, please help

Broken HTML after webfont.js usage in extra option

$
0
0

Replies: 1

HI,

Using Autoptimize on 100+ websites.

Today i noticed HTML being displayed on the homepage
PE html>

code in HTML source is
<script data-cfasync="false" id="ao_optimized_gfonts_webfontloader">(function() {var wf = document.createElement('script');wf.src='https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';wf.type='text/javascript';wf.async='true';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(wf, s);})();</script></head>PE html>

I have selected Combine and load fonts asynchronously with webfont.js in extra options for gogle fonts.

  • This topic was modified 2 hours, 19 minutes ago by Lalit Nagrath.

Vids + Images disappeared except for background images

$
0
0

Replies: 4

Hello,

AO has been working great, but sometime in past 2-4 weeks all images, buttons, and videos are not displaying (they exist, but invisibly). For whatever reason, background images are still displaying. I turn off AO and it all goes back to normal. Using Mac + Elementor

Thanks for any help!

Using Autoptimize to Inline Critical JS

$
0
0

Replies: 0

Hi Frank,

Happy New Year, I hope you had a pleasant time over Christmas.

I have a question about using Autoptimize to inline critical JS. Just as an example, say I had a render-blocking JS file but needed about 10% for above the fold elements on my page. I have a look in DevTools using the Coverage tab and can see the critical script in green.

Can I easily add this to Autoptimize to extract it from the file and then defer the file as standard? Any thoughts or advice much appreciated.

Kind regards,

Johnny 🙂

Gzip not working with autoptimize css with query strings

$
0
0

Replies: 0

First of all, thanks for the plugin!
But I have an issue that’s causing my site to load pretty slowly on mobile.

I use Divi, which has a ginormous style.css file with a query string parameter. Autoptimize optimizes it, but apparently it isn’t being gzipped.

I’ve added add_filter('autoptimize_filter_cache_create_static_gzip','__return_true'); in a code snippet, but it only appears to work when the query string parameter is excluded.

Using this site: https://base64.guru/tools/gzip-test, I tested if gzip was enabled for the autoptimized divi css without the query string and it says it is.
Then I tested with the query string and it says it isn’t.

Google Pagespeed Insights confirms this, reporting that it takes a whopping 9 seconds to display the first text on my site.

I’m on an nginx server, which, from what I’ve read, doesn’t discriminate by query strings when gzipping, so I can only assume the problem is on WordPress’s end.

I’m using Autoptimize in conjunction with WP Fastest Cache. Any idea if there’s something I’m doing wrong with Autoptimize? Or might this be a problem with the gzipping feature of WP Fastest Cache?

I’m new to all this so thank you ahead of time for any help you can provide!

Problem with inline JS – extracting from html although option deselected

$
0
0

Replies: 0

Great plug-in, worked without issues until last update. Had an old, simple, function on my front-page that returned quotes randomly. Now it doesn’t execute anymore. When I turn of “Optimize JavaScript Code” it works as intended. To see what I am talking about, scroll down my page until you reach “Todays random life lessons that makes total sense”. Just above that a quote should have appeared but doesn’t.

The option to aggregate inline JS is deselected.
Only when I deselect JS optmization can I make it work.

Something changed in last update?

Thanks in advance.

Lazyload leads to 404 errors for pics in SA slider

$
0
0

Replies: 0

Hi!

I came across a new phenomenon that didn’t exist a little while ago, so it has to have appeared with one of the recent updates.

I am using Autooptimize successful on several pages, but when I checked one of them with the console (because of another issue) there’s a new problem that didn’t exist before – and it is on all the pages:

Down, near the bottom of the page, is a slider with team members and it’s displayed okay, BUT:

For each of the slides in the console I get an error:

GET https://DOMAIN.COM/%22https://DOMAIN.COM/IMAGE-PATH/image.jpg – 404 not found

then a 301 Moved permanently for the URL and finally the proper picture is loaded.

Apparently the problem is the https://DOMAIN.COM/%22 (https://DOMAIN.COM/&#8221;) added to the beginning of each of the images.

Luckily, since the images do show, this isn’t a RED ALERT situation, but it does slow down loading of the images (because of the redirects) and, of course, looks ugly if someone checks the console…

PS: When I deactivate Lazyload for the page the error is gone.

Gallery images not visible in woocommerce

$
0
0

Replies: 3

A guy really has to monitor this plugin each and every time it’s updated. My site has not been displaying the product gallery images. I use woocommerce and I had to deactivate your plugin so my customers can view our products. I’ve been using your plugin for some time now and overall it’s been great aside from this issue that has happened 1-2 times in the last 6 months.

Multisite: Hide Options from admins

$
0
0

Replies: 1

Hi Frank,
thanks for this great plugin!

Is there a way to hide autoptimize options from admins when it is networkactivated?

My students should not get the advice to call the superadmin for single configuration?

Best, Daniel


Lazy Load not displaying images when optimise javascript activated

$
0
0

Replies: 3

Since the last (automatic) update of WordPress the images are not displayed anymore. I do have to de-activate javascript optimising. How to debug this problem.

LL breaks product

How can I prevent Google AdSense from being displayed?

$
0
0

Replies: 2

When I use Autoptimize for js, css and html, I notice that my served ads via adsense disappears. I’ve currently rolled back my site to not have Autoptimize.

Is there something I should be doing to make sure the ads don’t disappear?

Serving Brotli static pre-compressed files

$
0
0

Replies: 1

Hello,

I am trying to serve pre-compressed brotli files (HTML, CSS, JS).
In the AO cache, I only can generate the gzipped files but it appears that my server/CDN is compressing it on the fly and serving it with brotli, so the .html.gz, .css.gz and .js.gz pre-compressed are useless.

In order to serve the brotli version, I found this .htaccess rules :
https://httpd.apache.org/docs/2.4/fr/mod/mod_brotli.html#precompressed

<IfModule mod_headers.c>
    RewriteCond "%{HTTP:Accept-encoding}" "br"
    RewriteCond "%{REQUEST_FILENAME}\.br" "-s"
    RewriteRule "^(.*)\.css"              "$1\.css\.br" [QSA]

    RewriteCond "%{HTTP:Accept-encoding}" "br"
    RewriteCond "%{REQUEST_FILENAME}\.br" "-s"
    RewriteRule "^(.*)\.js"               "$1\.js\.br" [QSA]

    RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-brotli:1]
    RewriteRule "\.js\.gz$"  "-" [T=text/javascript,E=no-brotli:1]

    <FilesMatch "(\.js\.br|\.css\.br)$">
      Header append Content-Encoding br

      Header append Vary Accept-Encoding
    </FilesMatch>
</IfModule>

Is this rule the good one to use ?

I found a lot of documentation discussing mainly about nginx but not so much about apache even if some are saying it is now mainly enabled by hosters.

I have seen that you added the function to manage brotli compression in autoptimizeCache.php but I can’t make it work.
I also added this filter you advised to use with no success :
add_filter( 'autoptimize_filter_cache_create_static_gzip', '__return_true' );

Can you let me know what I should do in order to create and store the static version of the .br files as it is done with the .gz files.
Also is there something to do to make Cache Enabler do the same with .html files ?

Thank you for your help

Also aggregate inline CSS button

$
0
0

Replies: 1

Frank, absolutely love the plugin still.

Just an observation…

The ‘Also aggregate inline CSS’ button seems redundant, from my testing, as it does the same as the ‘inline all CSS’ button in theory, yet it doesn’t seem to do anything when I activate it?

Unless I’m missing something?

Cheers, David

Viewing all 14038 articles
Browse latest View live


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