Skip to content

Commit b9a8f93

Browse files
committed
Consolidated JavaScript files to reduce number of HTTP requests
1 parent e163c59 commit b9a8f93

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

html/js/garden.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,12 @@ $(document).ready(function() {
7070
prettyPrint();
7171
});
7272

73+
74+
var _gaq = _gaq || [];
75+
_gaq.push(['_setAccount', 'UA-20768522-1']);
76+
_gaq.push(['_trackPageview']);
77+
(function() {
78+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
79+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
80+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
81+
})();

html/js/jquery.color.min.js renamed to html/js/plugin.js

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html/js/track.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

html/template.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ <h1>{title}</h1>
3131

3232
<script src="js/prettify.js"></script>
3333
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
34-
<script src="js/jquery.color.min.js"></script>
34+
<script src="js/plugin.js"></script>
3535
<script src="js/garden.js"></script>
36-
<script src="js/track.js"></script>
3736
</body>
3837
</html>
3938

0 commit comments

Comments
 (0)