samedi 9 janvier 2016

Where to insert JavaScript Libraries and CSS in my HTML code?

I am little new to web development and when I was searching internet about other topics, I have seen many people has put popular JS Libraries in Different Places of their websites.

eg: Inserting JS Libraries on the Very Beginning or Start of the <head> </head> section. (Before loading any JS Code or a CSS File)

eg: Inserting JS Libraries on the End of the <head> </head> section. (After loading all JS Codes and CSS Files)

eg: Inserting JS Libraries on the End of the <body> </body> section. (After loading all JS Codes, Texts, Images, Videos, CSS Files etc...)

So my question is this.

What is the best practice for inserting (where) following JS Libraries, Plugins and CSS Style Sheets to a web page for the most faster loading times and other advantages? - Please mention the reason -

JQuery and it's Plugins

Bootstrap 3.js

Modernizr.js

Angular.js

And another widely used JS Libraries which I couldn't mention here...

Normalize.css

reset.css

bootstrap.css + more

Thank You..!




Aucun commentaire:

Enregistrer un commentaire