Users Pricing

forum

home / developersection / forums / launching jquery plugins depending on the user location

Launching jQuery plugins depending on the user location

Anonymous User 1873 15 May 2013
Hi Guys!

My senior gave me a task to put all little javascript and jQuery plugin code in one file which will execute these plugins, depending if the page has certain .classes or #ids. I am thinking what is the best way to do that.

Will simple if -> else do in this case or should I go further and create something with .each?

I also think that with the growing amount of plugins and other client-side code, there will be significant performance issues. But so far we only have about 5-10 self-invoking functions.

Thanks in advance


I am a content writter !


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md