Feridum / atom-html-templates

A simple extension for Atom.io to generate html5 templates with some other dependencies
MIT License
7 stars 11 forks source link

Small issue with using html5-bootstrap-jquery_2.2.1 template #4

Closed eugenetriguba closed 7 years ago

eugenetriguba commented 8 years ago

I've noticed while using the template for html, bootstrap, and jquery that the script tags at the bottom are placed bootstrap first and jquery below such as:

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>

but this does not work because bootstrap depends on jquery so the jquery script tag should be placed above it so it loads first.

For example: if you try to open the navigation bar on mobile with the hamburger icon, it needs jquery and won't open unless you switch around the position of the script tags like this:

<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>