JavaScriptスニペットはFirefox3.6をフリーズします
-
29-10-2019 - |
質問
このコードはFresefirefox 3.6を凍結しています。
// Google Code for Converted Users Remarketing List
function converted_remarketing() {
window.google_conversion_id = 1018522404;
window.google_conversion_language = 'en';
window.google_conversion_format = '3';
window.google_conversion_color = '666666';
window.google_conversion_label = 'e9x2CKzhXXXXpNbV5QM';
window.google_conversion_value = 0;
var a = document.createElement('script');
a.type = 'text/javascript';
a.async = true;
a.src = 'https://www.googleadservices.com/pagead/conversion.js';
var b = document.getElementsByTagName('script')[0];
b.parentNode.insertBefore(a, b);
}
converted_remarketing();
例のページ: http://jsfiddle.net/llsu4/11/show/
スクリプトの挿入と関係があるように見えます。おもしろいのは、完璧に機能するGoogle Analyticsコードから挿入スニペットをコピーしたことです。
それで、問題は、なぜFirefox 3.6を凍結するのか、Google AnalyticsスクリプトGa.jsをロードするために非常に類似したコードが実行されたときにFirefox3.6を凍結しないのはなぜですか?
正しい解決策はありません
所属していません StackOverflow