How to include a tag at the beginning of the Meteor.js application when the page loads?

In particular, I would like to add

<meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1, minimum-scale=1"> 

and when I insert it into my head from JS, I can still scroll horizontally in mobile browsers, so I assume that this should be in the head loading time.

+6
source share
2 answers

Place it in the <head> block outside the <template> in any .html file.

+10
source

Try using the inject-initial package to have your meta tag present at boot time.

+2
source

Source: https://habr.com/ru/post/971303/


All Articles