, $.getScript()
, .js, , , . API docs , .
- , , JavaScript, <script>
, DOM. - , . JavaScript, , jQuery, .
, , JavaScript DOM:
var headID = document.getElementsByTagName("head")[0];
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.onload=scriptLoaded;
newScript.src = 'http://api.flickr.com/services/feeds/photos_public.gne?tags=sunset&format=json';
headID.appendChild(newScript);
, .