Search code examples
jqueryhtml5boilerplate

Why does HTML5 Boilerplate need jQuery? What does it do?


I am working on improving my CSS skills. For a new personal practice project, instead of a larger front-end framework, I decided to go with HTML5 Boilerplate.

I see in the project website and the GitHub repo that jQuery is used. I do not understand why jQuery is used and what it does with this project.

I want to know:

  • Why does HTML5 Boilerplate need jQuery?
  • What are the features of jQuery that are used by HTML5 Boilerplate?

Solution

  • It serves no purpose, other than being included in the project.

    https://github.com/h5bp/html5-boilerplate/blob/master/src/doc/js.md

    This file can be used to contain all your plugins, such as jQuery plugins and other 3rd party scripts for a simple site

    "such as". It's not used at all.

    Since it's a boilerplate, most people might want to include it in their project. They simply did it for you.