I'm trying to use page anchors on my website, but having issues because content is dynamically loaded from JSON and therefore page anchors are triggering before the content is drawn and fully loaded.
Using Javascript I'd like to move to the page anchor only after all the content on the page has been loaded and drawn. I've found a few solutions on StackOverflow but they all rely on JQuery which I'm trying to avoid. How would you do this in vanilla Javascript?
JQuery examples: