Answer the question
In order to leave comments, you need to log in
How to update the browser if it is old?
Good afternoon, tell me the most elegant solution for updating the browser if its version is old, I collect projects in node.js + gulp, there are probably some plugins for gulp or by hand, so that I can poke into the template and use it all the time, I didn’t talk about it before conceived as [something, but apparently someone else is using old trash.
On the net I found this solution in the boilerplate template, adding a rule after the body tag
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
Answer the question
In order to leave comments, you need to log in
If you really need it, then
https://github.com/ded/bowser
although detecting browsers is not a good idea
Anton Essential : Here you are wearing something of your old, dear and beloved. And then someone comes, throws out This Beloved and gives a new one, like high-quality, but tough and not native.
I would also like everyone to update their browsers, but this is a personal matter for everyone.
Our job is to design sites so that they look normal (not necessarily the same and possibly with the same warning as yours) in all currently living browsers or choose a list of supported browsers, and those who use junk let them deal with it themselves.
That's why these are the answers. Yes, and the question is so worded, you forgive me.
There are no solutions because in this case, the node does not know which browser will open your files. The only option is to make it cross-platform right away. Or something to monster on the backend.
The correct option is to make a stub with a link to the update file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question