- When jQuery attaches
<script>tags, they quickly disappear. It adds them to the DOM, executes them and then removes them. If you switch to
document.appendChild, you can search for and find the tags at a later point. jQuery may be trying to work around browser limits on the number of script tags.
Ask for Help
- “What’s the best way to start a gem?”
bundle gem scaffolds a simple gem. Don’t forget to add a license!
More info on how jQuery handles script tags.