jmccartie
jmccartie

Reputation: 4976

Only Load Javascript if Supported

I don't want my users having to load a ton of JS files if their browser doesn't support it. What's the best/easiest/fastest to only load JS scripts if the browser supports Javascript?

Thanks in advance, - JS noob

Upvotes: 3

Views: 148

Answers (1)

Skilldrick
Skilldrick

Reputation: 70819

If JavaScript is off, the browser won't download files from the src attribute of <script type='text/javascript'> tags.

Upvotes: 6

Related Questions