wp-rocket icon indicating copy to clipboard operation
wp-rocket copied to clipboard

Set a Timeout when using Delay Javascript Execution to simulate interaction

Open waynep16 opened this issue 3 years ago • 11 comments

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.

waynep16 avatar May 21 '21 09:05 waynep16

Are we gonna be able to choose the X seconds ?

gevcen avatar May 26 '21 10:05 gevcen

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.

tommy83 avatar Jun 05 '21 22:06 tommy83

Related ticket - https://secure.helpscout.net/conversation/1570110663/279178/

DahmaniAdame avatar Jul 13 '21 10:07 DahmaniAdame

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...

tommy83 avatar Jul 13 '21 12:07 tommy83

Related: https://secure.helpscout.net/conversation/1555713436/274983?folderId=3864740

NataliaDrause avatar Jul 27 '21 09:07 NataliaDrause

Related: https://secure.helpscout.net/conversation/1580198490/282368/

juricazuanovic avatar Jul 27 '21 15:07 juricazuanovic

Related: https://secure.helpscout.net/conversation/1621624657/292327/

viobru avatar Sep 06 '21 12:09 viobru

is this feature already added?

kasket091 avatar Dec 25 '21 09:12 kasket091

new request https://secure.helpscout.net/conversation/1767650605/321623/

camilamadronero-zz avatar Jan 26 '22 14:01 camilamadronero-zz

new request: https://secure.helpscout.net/conversation/1930408468/350518?folderId=3864740

NataliaDrause avatar Jun 26 '22 14:06 NataliaDrause

New request: https://secure.helpscout.net/conversation/2004342086/367415?folderId=2952229

mifrero avatar Sep 12 '22 16:09 mifrero

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.

pedddro avatar Sep 26 '23 21:09 pedddro

Is there any "filter" that we can use to override this with some code in functions.php?

JerissCloudCenter avatar Oct 29 '23 10:10 JerissCloudCenter