-
Notifications
You must be signed in to change notification settings - Fork 24
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
High CPU usage in Safari due to incomplete recaptcha+CSP implementation #5
Comments
There is very little JavaScript code executed in the search page (none at all iirc) other than:
I doubt that the size slider or the bootstrap code is causing this issue. Can you try to disable javascript for *.the-eye.eu with JS Blocker or similar in safari and confirm that it is the case? |
This is even before I get to the page with the slider on. Switching JS off prevents the issue. I'll see if I can identify what exactly is the cause. Screen recordings
|
Hmm, first of all it is quite unusual to have that many captcha to pop, I'm using the website quite frequently and I only get them after 15 or so searches. What I'm trying to figure out is which script is causing your CPU to spike. With an extension like NoScript you can disable specific scripts and that would help narrowing it down |
I'll do so shortly. I did try to use JSblocker but I couldn't decipher it's UI I get multiple captchas for every search. |
If I prevent It seems the issue is with recaptcha and known about google/recaptcha#107 FWIW I use AdGuard DNS not sure that would affect recaptcha frequency? |
example of how to get recaptcha to work with CSP
|
Very weird.. as far I know, CSP is not enabled on my web server and I don't see ( Sadly I don't have a machine that can run Safari to troubleshoot the issue |
I don't run a proxy or VPN, no. But I do run some adblockers. I'll have another look. |
OK, I can reproduce in Safari Technology Preview (pre-release channel for devs) in which I have no extensions or adblockers installed. So I cannot see it being due to Safari itself. Next, I changed tried different DNS servers, AdGuard, OpenDNS, Google. Problem persists. Will look into the recaptcha file/include now. |
There are 7 mentions of the As I said previously, if I block that then the errors and CPU thrashing goes away. So I am back to square one, I have no idea why this is a problem for Safari and not Chrome. Is there an alternate way of including the recaptcha to see if that helps? I'm out of ideas, for now. I'll keep thinking about it. |
This is how it's included:
as specified in https://developers.google.com/recaptcha/docs/invisible. I don't see another way to do it Do you have performance issues with the /submit page? |
Yes, I literally can't use the site in Safari as its so slow. Every key press or mouse click takes seconds to register. |
I was looking for an excuse to use a FOSS captcha, this might just be it... |
Cheers, I'll keep an eye on it |
@gingerbeardman, check this and Mozilla's web site out. Currently, Safari does not support |
@emredalkiran I'm not sure what you mean? The issue you linked, I had already linked earlier in this thread. Even if Safari does not support that directive, I don't see any bad results from it on any other sites than od-db which is the odd thing |
Just an extra data point: itchio/itch#2156 So I think I'll look into reporting this to google |
I reported to this to the ReCAPTCHA team via email and it seems to have been fixed at the source code level? Will leave issue open for a while. |
@simon987 close dis |
@terorie why? |
@gingerbeardman It's not using reCAPTCHA anymore 😄 |
I see, there is a typo in the banner
Should be no longer |
Ohh good catch, I didn't even see that |
Can you quickly do a pull request to fix it, please? |
For some reason the OD-DB search page really stresses out Safari.
It makes it unusable, especially when trying to do the recaptcha.
I have to use Chrome to not have my laptop fans go into overdrive.
The text was updated successfully, but these errors were encountered: