Post Reply  Post Thread 

Conditional Javascript loading
Author Message
Nameslot
Administrator

Administrators

Posts: 1,538
Group: Administrators
   
Cash: 500.50 Donate
Conditional Javascript loading

Hello Smile

I have a scenario where the Javascript libarary is loaded from an external source.

But if the code is repeated on the page. Then it loads the libraries more then once.

Can someone help me with some javascript code that will only allow the libraries to be loaded once.

It could be something like it can check if it is loaded and if it is loaded then it should not load it again.

But I am going round and round in circles without any solution for this.

Thanks.


Nameslot.com | Do you have a question? shoot me a PM.
07-08-2008 04:24 PM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply

Advertisements

This is an ad revenue sharing forum
Nameslot
Administrator

Administrators

Posts: 1,538
Group: Administrators
   
Cash: 500.50 Donate
RE: Conditional Javascript loading

Ooops. Sorry again....

It turns out that whenever I post on some forums and then only I am able to find the solution myself.

Feels embarrassing :(


Nameslot.com | Do you have a question? shoot me a PM.
07-08-2008 04:40 PM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply

Post Reply  Post Thread 


Similar Threads
Thread: Author Replies: Last Post
browser javascript to detect if the browser is MAC Firefox idaba 1 07-01-2008 07:47 PM

View a Printable Version | Send this Thread to a Friend | Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:
Forum Jump: