I understand that Chrome runs the entire program asynchronously which causes my extension to open about 2 seconds after being clicked. Is there a way to force the extension to display the html page with a ‘loading’ message and then finishing loading the javascript and replacing the loading message with content without having them run at the same time?
I’ve looked into onload but it doesn’t seem to have any effect.
Thanks
I usually just wrap my code into
setTimeout, seems to cure some delay: