Questions tagged [domcontentloaded]

DOM event The DOMContentLoaded event is fired when the document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading (the load event can be used to detect a fully-loaded page).

124 questions
3
votes
1 answer

Misconception of DOMContentLoaded event

From MDN, I know DOMContentLoaded would not wait for stylesheets. The DOMContentLoaded event is fired when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish…
ygjack
  • 53
  • 6
3
votes
0 answers

DOMContentLoaded and load event fire before flexbox calculations are done in Safari 10.1?

In the newly released Safari 10.1 (macOS Sierra), the browser seems to fire the load events (document.DOMContentLoaded and window.load) before flexbox is done calculating widths and heights. I have a script that calculates the height of an element…
3
votes
2 answers

javascript object prototype call

b2 and b3 are not triggering the prototype functions and no errors are generated? How does one accomplish calling prototype functions in the fashion?