Is inline JavaScript good or bad?

CyberAlchemist

New member
Joined
Feb 9, 2013
Messages
245
Points
0
I am currently running WordPress sites and sometimes I have to add external scripts to develop my sites. It is hard to avoid to add JavaScript codes to files.
One thing I notice is that each time I add them, it embeds inserts JavaScript inline in the web page. Although it seems the JavaScript code is placed below the footer, it's still inline.
I've always been thought that JavaScript should be placed in JavaScript files. My question is inline JavaScript is good or bad? why? Or should I still try to keep JavaScript code in separate files?
 
Newer threads
Replies
3
Views
1,854
Replies
3
Views
1,704
Replies
6
Views
2,116
Latest threads
Replies
1
Views
115
Replies
0
Views
126
Replies
0
Views
175
Replies
5
Views
443
Recommended threads
Replies
2
Views
4,502
Replies
1
Views
2,709
Replies
11
Views
2,967
Replies
2
Views
2,642

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top