JBeckton
JBeckton

Reputation: 7111

ASP.NET Ajax Library

while using the ASP.Net Ajax Library to load scripts does it check to see if the script is already loaded?

For example, if I have a script block in my aspx page and one in my master page and they both load jquery via the sys.require() method with jquery get loaded twice?

Upvotes: 0

Views: 67

Answers (1)

o.k.w
o.k.w

Reputation: 25810

I've not tried it myself, but it 'should' be intelligent enough to only load once.

Here's a related article: HOW TO Load Required Scripts, esp the last paragraph.

PS: Considering it is smart enough to combine scripts, it should be able to detect duplicates.

Upvotes: 1

Related Questions