Skip to content
Permalink
Newer
Older
100644 46 lines (30 sloc) 2.01 KB
Oct 31, 2016
1
[HTML5 Boilerplate homepage](https://html5boilerplate.com) | [Documentation
2
table of contents](TOC.md)
3
4
# Frequently asked questions
5
6
* [Why is the Google Analytics code at the bottom? Google recommends it be
7
placed in the `<head>`.](#why-is-the-google-analytics-code-at-the-bottom-google-recommends-it-be-placed-in-the-head)
8
* [How can I integrate Bootstrap with HTML5
9
Boilerplate?](#how-can-i-integrate-bootstrap-with-html5-boilerplate)
10
* [Do I need to upgrade my site each time a new version of HTML5 Boilerplate is
11
released?](#do-i-need-to-upgrade-my-site-each-time-a-new-version-of-html5-boilerplate-is-released)
12
* [Where can I get help with support
13
questions?](#where-can-i-get-help-with-support-questions)
14
15
--
16
17
18
### Why is the Google Analytics code at the bottom? Google recommends it be placed in the `<head>`.
19
20
The main advantage of placing it in the `<head>` is that you will track the
21
user's `pageview` even if they leave the page before it has been fully loaded.
22
However, having the code at the bottom of the page [helps improve
23
performance](https://stevesouders.com/efws/inline-scripts-bottom.php).
24
25
26
### How can I integrate [Bootstrap](http://getbootstrap.com/) with HTML5 Boilerplate?
27
28
One simple way is to use [Initializr](http://www.initializr.com/) and create a
29
custom build that includes both HTML5 Boilerplate and
30
[Bootstrap](http://getbootstrap.com/).
31
32
Read more about how [HTML5 Boilerplate and Bootstrap complement each
33
other](https://www.quora.com/Is-Bootstrap-a-complement-or-an-alternative-to-HTML5-Boilerplate-or-viceversa/answer/Nicolas-Gallagher).
34
35
36
### Do I need to upgrade my site each time a new version of HTML5 Boilerplate is released?
37
38
No, same as you don't normally replace the foundation of a house once it
39
was built. However, there is nothing stopping you from trying to work in the
40
latest changes, but you'll have to assess the costs/benefits of doing so.
41
42
43
### Where can I get help with support questions?
44
45
Please ask for help on
46
[StackOverflow](https://stackoverflow.com/questions/tagged/html5boilerplate).
You can’t perform that action at this time.