Denis Ryabov
Forum Replies Created
-
Your AMP version has incorrect DOCTYPE tag (<!DOCTYPE html> instead of <!DOCTYPE amp>), that’s why PageSpeed Ninja parses and optimizes it as usual HTML page.
Yes, it is the folder where optimized js and css files are stored. You can change it to another location in Advanced settings of the plugin.
PSN doesn’t modify amp pages. I see that https://strictlylegal.in/?amp results in empty page, most likely there is an internal error. Could you check error_log file for related error/warning messages?
1. Rules depend on “Gzip compression in .htaccess” and “Caching in .htaccess” settings, but even if both settings are disabled, .htaccess files will be created with empty content.
2. Yes. But don’t forget that those files will be restored every time you save PSN settings.
3. Hmm, what do you mean exactly?
PSN inserts its own rules to .htaccess in following directories: wp-includes, wp-content, uploads. Further it will be optional, but now you can just remove those files in flavor of the your one.
Yes, it cleans up everything (restores .htaccess files and optimized images, removes cache directories, database entries, etc.).
Firstly update it to 0.9.43 (it fixes possible Fatal error message during deactivation), and after that Deactivate it in the Plugins page (there are two links below the plugin name, Settings and Deactivate), and then Delete it.
Fixed in 0.9.42. Thank you for bugreport!
Try to add following code to the theme’s
functions.phpfile:if (function_exists('is_cart') && is_cart() && !defined('DONOTCACHEPAGE')) { define('DONOTCACHEPAGE', 1); }After that, clear the Page cache.
If it doesn’t work, try to disable Caching in the “Reduce server response time” section (Advanced settings tab).
Try to open browser’s dev tools (F12 in most browsers) and check possible error/warning messages in Console tab.
Try to disable Above-the-fold CSS optimization (see “Eliminate render blocking…” section in the Advanced settings tab). It may conflict with Elementor (the latter assigns random IDs to its elements, and as a result the Above-the-fold CSS styles are outdated).
Most likely a minor fix to support PageSpeed Insights API v5 will be released quite soon (we need to test it), but the next major released is still in the development stage (and it’s the main reason we don’t release minor updates frequently now).
It looks like Google has stopped support PageSpeed Insights API v2/v4. We supports API v5 in PSN 0.10, but it is under development yet. Unfortunately, API v5 is not compatible with API v4, that’s why there is no easy way to fix it except of working more on 0.10 release.
Page reloading comes from the HurryTimer plugin, but I don’t know how it may be related to the PageSpeed Ninja plugin. And I don’t see anything related to PSN in the page source as well.
Попробуйте задать вашему хуку приоритет -151 (или еще меньше), чтобы он выполнялся до PSN.