• Welcome to NamesLot.com Domain Name Forum

    NamesLot.com Domain Name Forum offers a fully open forum to discuss domain industry news and a 0% commission marketplace for you to buy and sell domain names.

    We have reorganized our Marketplace so now it is easier to get attention to your domain while it is also easier for buyers to find the right domain name.

    If you want us to add more threads to our marketplace, please contact us! Listing on our marketplace as always, 100% free! Register NOW or Login HERE!

Conditional Javascript loading

Status
Not open for further replies.

Randall

Active Member
Hello :)

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.
 
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 :(
 
Status
Not open for further replies.

Members online

No members online now.

Forum statistics

Threads
20,486
Messages
70,489
Members
44,653
Latest member
smsdeals5
Active members today
3
New members today
0
New threads today
16
New posts today
16

Follow NamesLot on Twitter!

NamesLot proudly supported by

NamesLot proudly supported by

Top