public marks

PUBLIC MARKS with tags script & tag


jQuery - Does jQuery .remove() clear out loaded javascript when it is used to remove a script tag? - Stack Overflow

by decembre
No. Once a script is loaded, the objects and functions it defines are kept in memory. Removing a script element does not remove the objects it defines. This is in contrast to CSS files, where removing the element does remove the styles it defines. That's because the new styles can easily be reflowed. Can you imagine how hard it would be to work out what a script tag created and how to remove it? EDIT: However, if you have a file that defines myFunction, then you add another script that redefines myFunction to something else, the new value will be kept. You can remove the old script tag if you want to keep the DOM clean, but that's all removing it does. EDIT2: The only real way to "clean up" functions that I can think of is to have a JS file that basically calls delete window.myFunction for every possible object and function your other script files may define. For obvious reasons, this is a really bad idea.



Using Dynamic Script Tags

by Hieroglyphe
How dynamic script tags can be used to load JSON data or JavaScript code on the fly.


PUBLIC TAGS related to tag script

after effects +   ajax +   backup +   bash +   carousel +   clevermarks +   code +   css +   database +   development +   drupal +   file +   firefox +   flickr +   font +   free +   google +   greasemonkey +   howto +   html +   image +   images +   internet +   javascript +   jQuery +   js +   linux +   log +   logiciel +   mac +   mysql +   performance +   php +   plugin +   programming +   python +   ressources +   server +   shell +   ssh +   tool +   tools +   tutorial +   ubuntu +   ui +   upload +   url +   web +   webdesign +   wordpress +  

Active users

last mark : 09/06/2017 10:21

last mark : 18/12/2008 13:15

last mark : 28/04/2008 14:13

last mark : 21/10/2006 23:25

last mark : 08/11/2005 18:36