3 ms·
+1. The number of rendering invalidation bugs I had to work around in mobile Safari is crazy. `if(affectedBrowserUA) { elem.style.transform = 'translate3d(0,0,
by AdamTReineke 7y ago
+1. The number of rendering invalidation bugs I had to work around in mobile Safari is crazy.
`if(affectedBrowserUA) { elem.style.transform = 'translate3d(0,0,0); elem.style.transform = ''; }`
Edit: I guess you can achieve the same thing through UA client hints. Just need to add a new JS file that reads the request headers and maps them into JS globals.
- tbodt 7y agoThere's a proposed API for JavaScript to get the same information.
- AdamTReineke 7y agoOh, yup, I see that now. That was the next point after the headers one in the spec.