New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delay JS - Links needs to be clicked twice on iOS / Safari #3142
Comments
I had a client reporting this with Flying Scripts plugin, too. |
After searching I got that there is an issue on IOS with Safari related to using the following link tries to highlight the issue: On customer site I made the following change and solved the issue: wp-rocket/assets/js/lazyload-scripts.js Lines 91 to 99 in 7ec9d99
replace touchmove with touchmove touchend replace touchstart with touchstart touchend
After checking with @hellofromtonya , she said:-
so I will add needs: r&d label to be investigated. |
Another case: https://secure.helpscout.net/conversation/1296370691/198532?folderId=377611 |
Related ticket: https://secure.helpscout.net/conversation/1296809928/198688/ |
Related ticket: https://secure.helpscout.net/conversation/1334490646/210819/ |
Related ticket: https://secure.helpscout.net/conversation/1336672544/211528/ |
I tried this suggestion but it unfortunately didn't resolve the issue on iOS (for me at least). |
Same problem. Tried this feature for the first time a few days ago and got immediate reports that links on iOS weren't working and they needed double tap to work. Tried on 2 x iOS 14 devices and confirmed this problem so disabled for now. |
Any updates on this? |
Same problem. Any updates? |
Experiencing the same bug with both WP-Rocket and Flying Scripts. Replacing |
I have this happening on iOS Chrome browser rather than Safari. Anyone else can confirm? |
We've dropped the WP Rocket plugin for now, this issue is already open for 3 months and I don't feel like it's going to be fixed any time soon with the current open issue count (+400). |
Hope WP-rocket add the "fix" soon :) |
Any update from the developers? Are you working on it? |
@wp-media/dev Since we are seeing more and more of this and since the bug makes the feature quite unusable, I think we need to prioritise it. I have added it to the next sprint to see if we can figure out a solution. 🙏 |
Sounds good. This feature make a big difference for my website when it comes to speed, would love to have it activated again =) |
@arunbasillal no, the issue is marked as need R&D, it can't be part of a sprint. For an issue to be part of a sprint, it needs to be fully groomed first. |
Thanks! I really love this feature - would be awesome if it can be used on all my websites! |
I'm not sure, but this worked for me (so I think, correct me if I'm wrong). Was posted on a Facebook WP Rocket Group. I am guessing you can play around with the delayed milliseconds? Do post feedback if this is a solution, as I am a bit clueless if this works, or not. Good luck! Go to WP Rocket Settings, and Exclude timingDelayExecution from JS Delay list. |
This would obviously be the equivalent of disabling the delay js feature altogether. |
@peixotorms Actually that's where the timing delay number comes into play doesn't it? A previous version of this fake user interaction triggered without any delay. So that disabled the delay js feature. Here I am guessing you can delay this fake interaction? What do you think? Thanks! |
You can check on pagespeed insights or gtmetrix.com for what scripts are loaded before and after this code. Also, it's possible for people to be rushing and be faster than 0.5 seconds, so it would not work. |
Hi, do you know how to put this code in the last version ? |
Why you don't you say near delay check that enabling will broke your site on iphones? |
this issue is now open for so long. |
@wessiack One of the root causes was solved in the 3.12.5 version of WP Rocket. Have you already sent your examples to our support team, so we could investigate this further? It'd be appreciated. |
Thanks for your response @piotrbak we are on the latest version 3.12.4. on integration. Is 3.12.5 already officially released? I don't see these in the plugin-update list... |
Same here, only 3.12.4 available. Hope that 3.12.5 solves this issue. |
@wessiack @moisty70 3.12.5 is in the staggered release, you should see the update notification in upcoming days.
We're fixing scenarios that are possible to be improved on our end. Here we're dependent on iOS browser implementations. For any regression cases (it used to work but it's not working in the newer version), the best solution is to contact our support team, we'll investigate each website separately finding the root cause. |
Same issue here, WP 6.2, OxygenBuilder 4.5, MultiSite, Wp Rocket 3.12.6.1 |
I don't see this fixed, I am on version 3.13.0.1 |
Same! Still same issue as it has been for the past 3 years. Turning the JS delay has been the only solution.
…On Wed Apr 19, 2023, 07:22 AM GMT, blw ***@***.***> wrote:
I don't see this fixed, I am on version 3.13.0.1
—
Reply to this email directly, view it on GitHub <#3142 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAL6GPTT7A3EHXF4J2ES533XB6HCRANCNFSM4RYKKVFQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Any update on when this will be fixed? This is really a great feature but it's sad we can't enable it as most users are on mobile safari. |
Any update on the matter? Issue still persists |
I have same issue with Newspaper theme! |
Same issue, it will be really great if this can be fixed |
same issue (Flatsome Theme, WPML and WP-Rocket Version 3.14.4.2) - committed by WP-Rocket 2nd level tech support! |
+1 |
1 similar comment
+1 |
Hello, We are also facing this issue with our clients website. Please do the needful asap as this is critical. |
Hello, Any news about this problem ? |
This is freaking irresponsable, 3 years in and the issue still exists. Why can't it just be fixed? It's not like we're using a free plugin, we deserve better support, especially when sites break! If you can't fix it at least add a warning to the admin dashboard that states if you enable the javascript delay functionality the website may become unusable on safari. |
Greetings everyone! For those who are still seeking a solution, I've created a tutorial that might help. It's been effective for my website, which boasts a 99 score on PageSpeed, and I've encountered no issues with delayed JavaScripts. This is the solution: https://prodanadvisor.com/double-click-issue-on-ios-safari-with-wp-rocket/ |
I had the same issue, so I moved on from wp rocket long time ago... but also to be fair, people are forgetting, that when you delay all javascript your are effectively turning it off and it's not downloaded, until there is interaction. If the site was developed with a lot of plugins and is heavy with a lot of javascript, then obviously if you directly go and click the menu (how many people do that?) it first needs to download the scripts, and only then it will try to open the menu. Normal behaviour is to move the mouse, or tap somewhere else before going to the menu... so I think the issue shouldn't happen for those people, but if you are testing and directly clicking the menu, then the bug is going to happen. Some scripts from different themes and plugins simply do not allow it to work due to how they are coded, or they have not being excluded because wp rocket doesn't recognize them.... I saw this coming when they switched from manually turning on the delay javascript option, to always on by default... so poor oversight. They have to now exclude every possible script from all themes and plugins that have a menu, which also means, a lot of work and lower performance in the tests. |
That is never going to be a solution... you are basically excluding Safari from the optimization, so while you score well on pagespeed (because it's not safari), all your safari users will not be optimized. That also means, regardless of having 100 on pagespeed, you are still going to fail the web vitals metrics if you have a significant amount of users using safari. Web vitals are not from pagespeed, they are the average speeds experienced by all users. |
While I've stopped using WP-Rocket, I was still experiencing the double click issue on IOS. I created a script that resolved this issue on my website. Here: ;(function(document, window) {
})(document, window); |
I had this double-tap issue caused by lightSlider due to its use of touchstart and touchmove that somehow triggered the bug in iOS. After thorough investigation I could resolve my issue with this piece of script (added to the beginning of body):
It might as well work for your wp-rocket issues too. |
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
On Safari browser in iOS (and probably in others as per one customer), when delay JS is enabled links have to be clicked twice for them to work. This is even when:
To Reproduce
Steps to reproduce the behavior:
Note that if you click on a link which is in the viewport, i.e. without scrolling, it will open immediately.
Expected behavior
Links should load as normal and shouldn't need two clicks.
Screenshots
Screencast: https://youtu.be/D1Pp45wLMhE (Thanks to @vmanthos for this and most of this report)
Additional context
Please see this note from Vasilis for some more insights - https://secure.helpscout.net/conversation/1283702266/195256/#thread-3691038967
Potentially related tickets:
Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: