Good tip to optimize JavaScript execution: JQuery – Run script IF!

Read the full article:

JQuery – Run script if! « eligeske

When running a site with a boat load of javascript, you may want to run a script only if a certain something is on the page. Not only could this save on initial loading time, but more importantly if you have an element of one thing on one page and the same named element for something else on another. You don’t want your JQuery to do an action to that if it isn’t intended.

~ by WPA Staff on July 14, 2010.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: