Working on a complex page with many scripts loaded. Only in Chrome, apparently at random, the DOMContentLoaded event doesn't fire and document.readyState remains on "loading"
How can I determine what causes the browser to be stuck on this condition?
The strange things is the assets (js) at the end of the document get loaded but do not appear on the elements tab.
got same problem last days, including loaded but not executed script from bottom of document. Deep research has shown that reason was in less processing on client side. Have changed order of scripts/less file and it helped. So far no hangs. I've put scripts/less in following order:
1) all scripts
2) .less style file
3) less.js script file
So working order of scripts is:
Still testing it, will update if catch anything.