How to Determine duplicate Javascript Functions which include in Asp.net Page
I have an application which use some javascript functions, As all javascripts include in Masterpage, most of them which comes withpage are not necessary, and some of those are repeated ( cause used in some different JS file. ) So I want to check if there is a way to determine duplicate functions and remove them ? You can check if the function exists when declaring a function, but You have to change the way it works. instead of function foo(){ something } do if(window.foo===undefined){ window.foo=function(){ something } } and You can still call it foo(); All this can be added in Your files with