So I am building a Chrome plugin that needs access to the DOM of the user's visible page for a variety of purposes. I also need to use the title of the page, but it seems unnecessary to wait until the entire page has loaded via:
$(document).on("DOMContentLoaded", function () {
onLoad();
});
Is there anyway I can access the title of the page (as it is already viewable in the browser) before the page finishes loading?
The reason I would like to access like to dothis is that my extension sends (& waits for the response of) an API call (relying only on the page title) so I would like to start this process as quickly as possible.
Thanks!
Aucun commentaire:
Enregistrer un commentaire