-
Notifications
You must be signed in to change notification settings - Fork 53
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
[Feature Request] Add support for ResizeObserver to old browsers #799
Comments
I don't have a way to test this myself, but prs are always welcome |
Hi. I was also hoping to use vite plugin legacy. While assuming I can just add a line into Also, I instead end up finding this dev.to post/article which said Sorry for bringing up this hassle. I've only looked into vite the day I made the feature request, but If you can point me towards where I need to properly look to get vite plugin legacy to provide ResizeObserver, I'll be happy to try it out and see if it can work. |
from my understanding |
A pity. Oh well. My feature request still stands, in hopes of a method other than using |
I've just added |
Pardon me for the late response. tried building from source to see if it works, but it seems I can't get past the login on my ipad. I guess I'll try again once the new UI is released in a major release. |
are you using the stable server? |
I was using the stable version indeed. I'll try again at some point with the server preview version. For now, i'll edit my previous comment to describe what happens when using the stable server. |
Hello, With the docker server, I switched the WebUI to the preview channel in the GUI, which made it use Also tried cloning the server repo and running it with Happy to try again if I missed something, though again, might take time for me to try it out. P.S. New WebUI is looking pretty good~ Feels a touch more modern compared to the current stable version |
from what I've found, the safari version, that comes with iOS 12, only supports ES5, which should prevent the app from being usable at all what I don't understand is that you were apparently able to run the app with just adding a polyfill for the ResizeObserver while using an iPad which also runs iOS 12? |
Yep, not quite sure how to check the exact model, but in Settings it says it's an iPad Air with software version 12.5.7. It was a bit weird as well. If I recall correctly, only using the code snippet in juggle's page didn't work, and neither did using the snippet from that dev.to article. Combining the two however (as you may or may not have seen in my comment's edit history), for some reason worked and is what I'm using at the moment. So yeah, it for some reason just works by adding those lines into App.tsx for me. A bit unrelated but correct me if i'm wrong, the device shouldn't be running any .tsx files yeah? at least I don't see any .tsx files inside the build or webUI folder after running Edit: So I tried git reset to a commit before you added polyfill and tried it out on the iPad. It's a white screen instead of the webUI partly loading. The login prompt is showing up, but after that just white screen... |
tsx gets compiled to javascript, and the version it gets compiled to is not supported by safari of iOS 12, so it shouldn't be possible to be running on these systems to get it to work you'll have to change the config so that vite compiles to ES5 |
Ah so that's what you mean. And so that's what you mean that somehow the previous webUI version is working despite the recompile/rebuild. I guess I'll be googling around how to do that in my free time to see if that can get things working. Thank you very much. |
What feature should be added to Suwayomi?
Please consider providing legacy support for the ResizeObserver in old browsers. Whether by polyfill or through some other method.
Why/Project's Benefit/Existing Problem
This will continue support for old browsers that do not yet have ResizeObserver.
On a iPad stuck at version 12, the browsers (Safari, Chrome, Firefox) cannot be updated to a version that supports this feature, and instead the error
Can't find variable: ResizeObserver
will pop up.I've tried rebuilding the v1.1.0 release with polyfill from @juggle/resize-observer , and this seems to have successfully added it to the version of Safari i'm running, so I believe only the ResizeObserver feature is missing to run the WebUI on old browsers.
The text was updated successfully, but these errors were encountered: