April 12, 2022 at 6:47 am #49951LEO ASINOVSKIGuest
This error can be seen in the DevConsole in Chrome
(I tried to include the script but it was blocking the post)
It seems that this code is generated by W3C. Always the pages are working but WP_Form does not…
Can you please help me to fix it.
LeoApril 12, 2022 at 6:53 am #49980Marko VasiljevicKeymaster
Thank you for reaching out and I am happy to assist you with this.
I’ve checked the website and I can see that W3 Total Cache is enabled. I can also see the Console error:
Uncaught ReferenceError: asyncloader is not defined
I can also see that you are using Jetpack to optimize JS and CSS files which may be causing the jQuery not to load properly, as it should for dependent files, especially when using async.
Can you please disable the optimization for JS and CSS files in the Jetpack performance settings, and see if that helps, and also, try switching the embed method in the Performance>Minify>JS to default (blocking)
Let me know if this helps!
Thanks!April 13, 2022 at 8:36 am #50035LEO ASINOVSKIGuest
Thank you for the quick response.
Following your recommendations worked and the error was cleared…
However, now I have very slow loading of the page – it is a problem.
I checked that I have browser cache enabled in W3 and htaccess file has compression instructions.
But it look like compression is not working (i checked with https://www.giftofspeed.com/)
Below are instructions generated by W3 in htaccess file.
How do I fix this?
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml
</IfModule>April 13, 2022 at 8:49 am #50089Marko VasiljevicKeymaster
Thank you for the information.
As I can see the compression is enabled and you are using Brotli to compress the files.
You should also increase the cache-control and expires header for static files such as JS files from max-age=3600 to default 31536000 s
Can you also please let me know if you are testing https://www.semiconsoft.com/wp2/ or https://www.semiconsoft.com/ because the website redirects to https://www.semiconsoft.com/wp2/
I would also disagree that the website is loading slow as the TTFB is 280ms which is very fast.