目录

How do I run JS scripts before and after the DOM tree is loaded in the Web component?

Use javaScriptOnDocumentStart to inject a JS script before the document is loaded and use javaScriptOnDocumentEnd to inject a JS script after the document is loaded.