-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
Inspecting the slider in Safari and Chrome will eventually kill the browser #740
Comments
Just to add: Resizing the browser with no inspector open and all other scripts disabled will also crash the browser eventually. |
I have no idea. That does not happen on my side. |
Well, actually it does (well on your "site" at least). Here's a short demonstration: https://www.dropbox.com/s/7s2bbvyqyoimkh7/IMG_6942.MOV?dl=0 I am a bit excessive with the dragging to make it happen faster, but as you can see around the 17s mark, the inspector and browser breaks. Right click nor regular clicks on the slider arrows works.
|
My best guess is that some recalculation runs wild |
Only one. Just had two colleagues confirm that the exact same thing happens when they too inspect the slider. |
Then, I have no idea for now. Need to dig into it. |
Well, what if removing the Grid extension? |
Then it seems to work. However in this case I need the grid function, so I hope you are able to take a look at it at some point. I can also make the grid example on the SplideJS website break the inspector, it just takes longer for some reason. |
If you want, I can send you the link to the page where the slider in question is inserted. It breaks almost instantly there, upon inspection. |
Yes, please :) |
Sent, please confirm receiving it so i know it reached you :) |
Thanks. I've received it :) |
Can you try the latest version? |
That does seem to have solved it! I just spent 5 minutes trying to break it to no avail :) Can you elaborate on what the fix was? Wanna thank you for a very swift fix, that was very nice of you. |
In some cases, grid and/or pagination components failed to destroy themselves. I'm not 100 sure about the condition, but I've optimized suspicious code and ensured the distruction. |
Thanks for clarifying :) Since yesterday i've had two or three instances where the inspector will break and not function. But it doesn't happen when resizing the browser like it did yesterday. Instead it seems to happens over a prolonged period, so there might still be a small leak somewhere that adds up over time. Doesn't seem to hurt the userexperience of the site though. Anyway, just wanted to let you know, don't know if there's really more to do here. Thanks a ton again. |
Well ok, I think i caught it just now. Poke around in the slider with the inspector open then just let it sit for x minutes and at some point the inspector will update/flash and then stop working. Took around 5 minutes in this case. |
I've tested it in "pure" environment (since your site is loading other scripts), and never seen the bug. |
Understandable. I appreciate everything you did, i'll close it. Thanks |
Hi, I have actually a similar situation. @MartinHaun You sorted the issue? or still have this problem? |
We updated to version 4.0.1 for both Splide js and Splide extensions (grid version 0.4.1), and the problem (for the most part) went away. The regular user wouldn't experience any issues - only us when inspecting the page with the slider on it for long periods of time. Package.json:
|
@MartinHaun I used the newer version of splidejs 4.1.4 with 0.4.1 also for the grid. Works fine with only using 1 slider (grid). |
Checks
Version
v4.0.0 with grid extension 0.4.0
Description
Inspecting the slider in Safari on M1 Monterey 12.2.1 with Safari 15.3 and Chrome 99.0.4844.84 will eventually crash both browsers with these settings:
It will worsen quickly if i drag the inspecter back and forth while testing responsive modes (inspector on the right side of the browser).
It might be (another) issue on my end though.
Can provide video privately if needed as the project is not public yet.
Reproduction Link
No response
Steps to Reproduce
Slider with the following settings:
Markup (Hubl):
Open inspector, drag it around to test responsive modes, inspector should slow down and eventually crash.
Up until now the browser doesn't seem to crash if I poke around the slider without inspecting it.
Expected Behaviour
Non-chrashing inspector.
The text was updated successfully, but these errors were encountered: