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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -