A way to downgrade the JavaScript experience based on different browsers.
Lets say Array.prototype.forEach() is not supported in IE 11. It would be awesome to tell my Google Chrome:
"Hey, try this page with IE 11 Javascript Knowledge!"
I don't know if I can explain this correctly, but this way I could test fallbacks of functions on different browsers without leaving the browser.
"Web-Stack" developer with a focus on accessibility design and development patterns, data visualization and DevOps automation.
Fell in love with Node, JS, SPA's and the JAMStack. Bye LAMP.
What if I don't run Windows. It would be so much easier to do this in my browser without emulating.
Last time I run into such an occasion was, when I did some research for a Sorting method with different languages for my work.
I found Intl.Collator.prototype.compare which doesn't support Android WebView but anything else. Since we wanted to use this in Cordova as well, I suggested a fallback to a slower sorting method.
I found no way of telling my browser to disable Intl.Collator.prototype.compare for testing my fallback. That would be so nice to have.
"Web-Stack" developer with a focus on accessibility design and development patterns, data visualization and DevOps automation.
Fell in love with Node, JS, SPA's and the JAMStack. Bye LAMP.
What i would love to have in my browser:
A way to downgrade the JavaScript experience based on different browsers.
Lets say
Array.prototype.forEach()
is not supported in IE 11. It would be awesome to tell my Google Chrome:"Hey, try this page with IE 11 Javascript Knowledge!"
I don't know if I can explain this correctly, but this way I could test fallbacks of functions on different browsers without leaving the browser.
I think it's better forget about that and start using Babel
That's a fantastic idea!
I have several use-cases off the top of my head I could think of that would benefit from this! Especially when testing graceful degradation.
You can kind of get away with this in Microsoft Edge when setting the IE Emulator version - but I don't know how extensive it goes.
What if I don't run Windows. It would be so much easier to do this in my browser without emulating.
Last time I run into such an occasion was, when I did some research for a Sorting method with different languages for my work.
I found
Intl.Collator.prototype.compare
which doesn't support Android WebView but anything else. Since we wanted to use this in Cordova as well, I suggested a fallback to a slower sorting method.I found no way of telling my browser to disable
Intl.Collator.prototype.compare
for testing my fallback. That would be so nice to have.Fair point, I do make the OS assumption of Windows 10.
The majority of these browsers have a Mac/Linux version but I'm not exactly sure about Microsoft Edge... I think it is cross-compatible?