I am trying to understand the internal process of getScript. I am aware that it uses $.get method interally.I was thinking that jQuery puts a script tag reference into the DOM for being able execute that js file but I couldn't find script references of loaded scripts by getScript in the DOM .
So how does jQuery execute loaded scripts without script tag references in the DOM?
$.getScript('gallery.js')
is exactly same thing with $('<script src="gallery.js">').appendTo('body')
?