I am looking for a method that allows me to add, remove DOM objects of a page before the DOM is even displayed, I mean that the first JS that I include in the main tag of my page may appear, look for a specific tag that says and removes it from HTML even before rendering it, I know that the javascript call is blocked, since the browser will display my page and come to my javascript in my head, it will block rendering, loading and excecute javascript, now at the time of execution I need to control the previously loaded HTML pending rendering. Is there such a way?
I tried using the properties of the document, but I do not get the tags in js that appear after that js in html.
source
share