My system works in the form of SPA (Single Page Application), I load all the functions that I will use in the system in a single file (which is light by the way), the problem is that it is all Once I load a page, I need to retrieve the inputs with Jquery, my doubts are as follows: Will not I be overloading the browser by calling several times the same element in Jquery?
Here is an example of my code:
var editContact = function(){
$("#element").mask();
//Call Google Maps
}
File that will be loaded several times by jQuery.load ();
<script>
new editContact();
</script>
<input id="#element">
I would be overloading the system every time I load the page, since I call the editContact () function every time?