5

每一次加載JavaScript資源當我加載我的網站在大約一個它無法加載網站的五倍,並在IE 9控制檯,它說:在每隔一段時間IE 9不能在一段時間

SCRIPT5007: Unable to get value of the property 'normalize': object is null or undefined 
require.js, line 929 character 25 
SCRIPT5007: Unable to get value of the property 'normalize': object is null or undefined 
require.js, line 929 character 25 
SCRIPT5007: Unable to get value of the property 'extend': object is null or undefined 
[email protected]@timestamp, line 52 character 3 
SCRIPT5007: Unable to get value of the property 'normalize': object is null or undefined 
require.js, line 929 character 25 
SCRIPT5007: Unable to get value of the property 'View': object is null or undefined 
[email protected]@timestamp, line 8 character 3 
SCRIPT5007: Unable to set value of the property 'Validation': object is null or undefined 
[email protected]@timestamp, line 15 character 3 
SCRIPT5007: Unable to get value of the property 'extend': object is null or undefined 
[email protected]@timestamp, line 10 character 3 
SCRIPT5007: Object expected 
[email protected]@timestamp, line 143 character 15 
SCRIPT5007: Object expected 
[email protected]@timestamp, line 143 character 15 
SCRIPT5007: Object expected 
[email protected]@timestamp, line 143 character 15 
SCRIPT5022: Load timeout for modules: css!lib/foundation/style_unnormalized2,css!lib/icon-font/fontcustom_unnormalized3,css!lib/icon-font/icon-font_unnormalized4,hbs!modules/header/HeaderTemplate_unnormalized5,css!modules/header/HeaderStyle_unnormalized6,hbs!lib/components/avatar/AvatarTemplate_unnormalized7,css!lib/components/avatar/AvatarStyle_unnormalized8,hbs!modules/login/LoginTemplate_unnormalized9,css!modules/login/LoginStyle_unnormalized10,hbs!modules/header/HeaderTemplate,hbs!lib/components/avatar/AvatarTemplate,hbs!modules/login/LoginTemplate 
http://requirejs.org/docs/errors.html#timeout 
require.js, line 1758 character 9 

什麼是如此令人困惑的是,它只發生零星可能是我要我的JavaScript文件的方式?

+0

看看你是如何加載你的文件將是有用的。顯示一些代碼? – 2013-03-13 23:50:57

+0

模塊依賴關係可能沒有正確設置? – sweetamylase 2013-03-14 06:54:58

+1

這聽起來像您的依賴關係設置不正確。 5次中的4次,您的瀏覽器可能會加載足夠快的腳本,以至於它每時每刻都會運行,並且不會。與所有內容一樣:請在提問時發佈代碼或者很難提供幫助。 – Chris 2013-09-19 06:44:05

回答

0

這似乎與在JQuery

發生類似的問題相關聯。這是所有的DOM沒有準備好,並且由於DOM未滿載出現這種錯誤,這也將解釋「隨機」的行爲你提到的。

如果你還沒有這麼做過試圖在頁的末尾或某種延遲加載的添加腳本:

順便說只交在這方面看來微軟拒絕它並不認爲它是一個bug:

https://connect.microsoft.com/IE/feedback/details/792880/document-readystat