According to the MDN wiki, DOMContentLoaded
will fire when "page's DOM is ready, [although] the referenced stylesheets, images, and subframes may not be done loading."
What about DOMContentReady
? Is it just an alias?
According to the MDN wiki, DOMContentLoaded
will fire when "page's DOM is ready, [although] the referenced stylesheets, images, and subframes may not be done loading."
What about DOMContentReady
? Is it just an alias?
私は、イベントタイプ「DOMContentReady」が現在の実装には存在せず(つまり、現在の実装ではそのようなイベントタイプが発生しない)、そのような名前の出現は単なるlapsusmemoriaeであると主張しています。
「DOMContentLoaded」という名前は簡単には覚えられません。jQueryライブラリは.ready()
このイベントタイプをバインドするメソッドを使用しているため、誤って「DOMContentReady」という名前を使用して正しい名前「DOMContentLoaded」を参照している人もいます。
As far as I know DOMContentReady
is not a standard event. Just stick with DOMContentLoaded
.