javascript - Event which triggers before DOMContentLoaded -
in firefox extension using domcontentloaded
detect page load , insert html. there event triggers before , still document available @ time?
there content-document-global-created
notification sent out when document created, before content added (to precise, happens when browser receives http headers of response , knows isn't redirect or such). that's earliest point can document. domcontentloaded
event fired once gecko finishes downloading contents of document, that's earlies point can access complete dom. in between there bunch of other events, e.g. lots of progress listener events - 1 use depends on trying do, there no general answer.
Comments
Post a Comment