2012-09-03 4 views
7

警告:誰かがこれをコピーしてthisの重複としてマークする前に、理解していないことをご理解ください。受け入れられた答えはまさに私がやっていることですが、私は次の問題に直面しています。クライアントのフォルダ内の最初に入っていないメタタグ1024バイト

HTMLファイルには、次のようになります。

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

私は放火魔コンソールで取得していたメッセージは次のとおりです。

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. 

私は頭との間でソースの表示を、行いますmeta charset要素、私はリンクスタイルシートとスクリプトタグの全体の束を参照してください。

私はメタ文字セットを削除した場合、私は放火犯コンソールでこれを取得:

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. 

はどのようにしてメタcharsetタグがヘッドの後に現れするのですか?私が何をしたか

答えて

6

は編集/usr/lib/meteor/app/lib/app.html.in、およびファイルは次のようになりますように、メタ文字セットの行を追加しました:

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

そしてもちろん、私は私のhtmlファイルからメタ文字コード行を削除しました。

私は今これが道に行くと思いますが、これは将来の改訂で解決されるでしょう。

1

IEで問題が発生し、最新バージョンを使用するようになりました。 私は追加しなければならなかった

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

タグのすぐ後ろに。 app.html.inはもう使用されていないようです。

だから私は、HTML定型でそれを追加することを余儀なくさ

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

ライン783

ツール/最新/ツールでこれをやった/ bundler.js

関連する問題