Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Really good approach, but it requires spooling through the completed DOM which may not be reliable. Commented Jul 31, 2009 at 22:18
  • @Paul: no spooling here. The DOM does not have to be "completed" for document.getElementsByTagName to work. Commented Nov 29, 2009 at 3:38
  • How is this working with async/defer attribute ? is scriptSource() function reliable written like that ? Commented Oct 16, 2015 at 9:07