by andirk · 3y ago · 0 comments
To push browsers to get rid of UA string, we should all use a UA string extension that uses the same string like "DOG-SHIT". That way it'll start showing up in analytics.
And if you're trying to date the "data science" girl, spam the app/website with UA string like "hi-amy-will-you-go-out-with-me--sincerely-jack-who-sits-behind-you."
Maybe throw in the EICAR test string as well, getting their shitty antivirus to purge the log files may just help protect your privacy!
I recently ran into an issue where a media-heavy blog post of mine would sporadically crash iOS Safari. I ended up narrowing it down to my use of ImageBitmap to accelerate rendering images into 2D canvases on the page.
My fix ended up being to modify my ImageBitmap feature check to pretend it wasn't supported on Safari.
Lots of `isIOS` and `isSafari` tests in my code. Safari 15 for example cannot correctly apply orientation metadata, and will choke on very big images when using `createImageBitmap` in a thread. No way to find out.
I could probably detect the orientation issue with a small dataURI of an image, but the big image issue is more difficult.