Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you include a tag in the head of Meteor.js app at initial page load?

In particular, I'd 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 the head from JS, I'm still able to scroll horizontally on mobile browsers, so I'm guessing it needs to be in the head a load time.

like image 582
Loren Avatar asked Jun 24 '14 18:06

Loren


2 Answers

Place it in a <head> block outside of a <template> tag in any .html file.

like image 110
Loren Avatar answered Sep 27 '22 16:09

Loren


Try using inject-initial atmosphere package to have your meta tag present on the initial load.

like image 23
Tomasz Lenarcik Avatar answered Sep 27 '22 16:09

Tomasz Lenarcik