• can I overuse Jquery?
    33 replies, posted
[QUOTE=supersnail11;44531112]There is no good performance-related reason to not use jQuery, [i]especially[/i] on a basic site.[/QUOTE] Yes, there is. If you have dozens of browser windows and tabs up, you don't want each and every one of them to run jQuery unless there's actually a good reason for it. Your website's not the only one out there.
[QUOTE=DrTaxi;44542216]Yes, there is. If you have dozens of browser windows and tabs up, you don't want each and every one of them to run jQuery unless there's actually a good reason for it. Your website's not the only one out there.[/QUOTE] Why not? jQuery only 'runs' when needed. If you have a button with a jQuery function, it's going to sit idly there until you click that button. If you have some operations at page load, they're going to be executed [I]and that's all[/I]. Unless you write something that requires constant interaction (like a timer), it won't run anything else, so the only performance hit would be having all the content of that page loaded into memory (and that happens with or without jquery).
[QUOTE=supersnail11;44531112]There is no good performance-related reason to not use jQuery, [i]especially[/i] on a basic site.[/QUOTE] I have a feeling that this may be an accidental double negative?
[QUOTE=AdrianH;44545376]I have a feeling that this may be an accidental double negative?[/QUOTE] There's no double negative in that sentence. "There is no (good performance related reason to not use jQuery)" or "The amount of good performance-related reasons to not use jQuery is 0"
Sorry, you need to Log In to post a reply to this thread.