getify / Mock-DOM-Resources

A mock of (parts of) the DOM API to simulate resource preloading and loading
MIT License
25 stars 6 forks source link

Should we mock DOM ready event? #6

Closed getify closed 7 years ago

getify commented 7 years ago

Considering whether document.readyState and DOMContentLoaded events should be mocked. Thoughts?

These aren't exactly directly related to resource loading, except that a lot of people conflate DOM-ready with "resources have loaded" -- a really bad assumption, but a persistent one nonetheless -- so in theory someone may want to test the interaction of resources loading after DOM ready.