wp-rocket
wp-rocket copied to clipboard
Set a Timeout when using Delay Javascript Execution to simulate interaction
As per the title.
After X seconds (similar to Flying scripts https://wordpress.org/plugins/flying-scripts) It would be nice to set a timeout of when to load the delayed scripts without physical page interaction.
Are we gonna be able to choose the X seconds ?
Very simple and fast implementation. Any chance to have an solution soon?
Because: there is no reason to scroll for every website. Small sites dont have scroll. And very often mobile websites have filter, search and other controle elements in header. Visitor will wait or need to touch/scroll to see the elements. Not good UX and visitor dont understand why... Or they wait, wait, wait...
most of all js Delay Plugins already support fallback/timeout.
Related ticket - https://secure.helpscout.net/conversation/1570110663/279178/
Yes, 90% of all our clients asking us after using delay option: Why the website is not build fine? Our visitor asking why they need to move the mouse or any key before start reading the blog... otherwise the website will be not build correct... So a solution like "WP Meteor Page Speed" woud be a great so user can select: not 100% optimized site, but UX/IX and also pagespeed will be okay by setting up an fallback value in seconds: after x seconds the full js will be executed...
Related: https://secure.helpscout.net/conversation/1555713436/274983?folderId=3864740
Related: https://secure.helpscout.net/conversation/1580198490/282368/
Related: https://secure.helpscout.net/conversation/1621624657/292327/
is this feature already added?
new request https://secure.helpscout.net/conversation/1767650605/321623/
new request: https://secure.helpscout.net/conversation/1930408468/350518?folderId=3864740
New request: https://secure.helpscout.net/conversation/2004342086/367415?folderId=2952229
Looking at the data, Wp Rocket and other plugins that offer Delay JS features have way worse INP(upcoming Core Web Vitals) than those plugins that don't, and even default Wordpress. This shows an initial correlation between the feature and INP results.
With the websites I have been testing, disabling the feature results in passing if the first user interaction is clicking on something (e.g. a button).
The click feedback cannot be processed after the script loads. A new way to load the scripts(e.g. simulate user-interaction) can result in passing metrics.
Is there any "filter" that we can use to override this with some code in functions.php?