Hi. I've seen extensions that insert a JavaScript library and stylesheet into the head of the page. How do these extensions do this? How do these extensions ensure that this only happens once regardless of how many times the user calls that extension? Thanks.
You use the dom.copyAssets(assetsArray) to accomplish this task.