Meta tag not in first 1024 bytes

Caution: before someone sets off and marks this as a duplicate of this , please understand that this is not the case. The accepted answer is exactly what I am doing, but I ran into the following problem.

The HTML file in the client folder is as follows:

<head> <meta charset="utf-8"/> <title>blah-blah</title> --- 

The message I get in the firebug console is:

 The character encoding declaration of the HTML document was not found when prescanning the first 1024 bytes of the file. When viewed in a differently-configured browser, this page will reload automatically. The encoding declaration needs to be moved to be within the first 1024 bytes of the file. 

When I create a view source, between the head element and the meta charset, I see a whole bunch of link style sheets and script tags.

If I remove the meta encoding, I get it in the firebug console:

 The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must to be declared in the document or in the transfer protocol. 

How do I get the meta chart tag right after the title?

+7
source share
2 answers

What I did was edit /usr/lib/meteor/app/lib/app.html.in and add the meta charset line so that the file now looks like this:

 <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> //**Added this line** {{#each stylesheets}} <link rel="stylesheet" href="{{this}}"> {{/each}} ... 

And of course, I deleted the meta charset line from my html files.

I think that now, this will be the way to go, and it will be allowed in future versions.

+6
source

I had a problem in IE to force using the latest version. I had to add

 <meta http-equiv="x-ua-compatible" content="IE=edge"> 

Directly behind the tag. And app.html.in doesn't seem to be used anymore.

So, I did it on tools / latest / tools / bundler.js

Line 783

 '<head><meta http-equiv="x-ua-compatible" content="IE=edge">\n'); 

This made him add it to the html template.

+1
source

All Articles