I've recently bumped into users that use old devices and whose browsers (mainly Safari 9) raise JS errors because they do not implement the const
keyword that we use in our modern SPA app*.
I suppose a fix would be to let Babel recompile the whole app with regular var
keywords, but I'm afraid of the speed loss of the website by doing so. Do you have any ideas/experience ith this ?
If we decide to support such broswers, is there a way to maybe compile a version of the website just for those browsers ? I've heard it was possible to use media queries for javascript files. Is it convenient ?
*We are hosting a ReactJS app at https://www.myjobglasses.com that comes from an ejected create_react_app