I am looking for such a method which allows me to add, remove DOM objects of a page before the DOM has even rendered, I mean the first JS that i include in the head tag of my page can come up, look for a specific tag say and remove it from the HTML even before it is rendered, I know that the javascript call is blocking so as the browser will be rendering my page and will come to my javascript in head it will block the rendering and download and excecute the javascript, now at the moment of execution i need control of the previously downloaded HTML waiting to be rendered. Is there any such way?
I have tried using document properties but the i dont get the tags in my js which come after this js in the html.