diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json
index c7184cd..73e0a6e 100644
--- a/npm-shrinkwrap.json
+++ b/npm-shrinkwrap.json
@@ -1,6 +1,6 @@
{
"name": "ely-by-account",
- "version": "1.0.0",
+ "version": "1.1.6-dev",
"dependencies": {
"abab": {
"version": "1.0.3",
@@ -1878,6 +1878,18 @@
"resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz",
"dev": true
},
+ "debounce": {
+ "version": "1.0.0",
+ "from": "debounce@latest",
+ "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.0.0.tgz",
+ "dependencies": {
+ "date-now": {
+ "version": "1.0.1",
+ "from": "date-now@1.0.1",
+ "resolved": "https://registry.npmjs.org/date-now/-/date-now-1.0.1.tgz"
+ }
+ }
+ },
"debug": {
"version": "2.3.2",
"from": "debug@>=2.1.1 <3.0.0",
diff --git a/package.json b/package.json
index f05290c..9664538 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
"dependencies": {
"babel-polyfill": "^6.3.14",
"classnames": "^2.1.3",
+ "debounce": "^1.0.0",
"history": "^3.2.1",
"intl": "^1.2.2",
"intl-format-cache": "^2.0.4",
diff --git a/src/functions.js b/src/functions.js
index b275fe0..f630d1f 100644
--- a/src/functions.js
+++ b/src/functions.js
@@ -46,3 +46,18 @@ export const rAF = window.requestAnimationFrame
|| window.webkitRequestAnimationFrame
|| window.msRequestAnimationFrame
|| ((cb) => setTimeout(cb, 1000 / 60));
+
+/**
+ * Returns a function, that, as long as it continues to be invoked, will not
+ * be triggered. The function will be called after it stops being called for
+ * N milliseconds. If `immediate` is passed, trigger the function on the
+ * leading edge, instead of the trailing. The function also has a property 'clear'
+ * that is a function which will clear the timer to prevent previously scheduled executions.
+ *
+ * @source https://github.com/component/debounce
+ *
+ * @param {function} function - function to wrap
+ * @param {number} [timeout=100] - timeout in ms
+ * @param {bool} [immediate=false] - whether to execute at the beginning
+ */
+export debounce from 'debounce';
diff --git a/src/index.ejs b/src/index.ejs
index 5215c2a..d0d4222 100644
--- a/src/index.ejs
+++ b/src/index.ejs
@@ -31,19 +31,5 @@
<% for (var chunk in htmlWebpackPlugin.files.chunks) { %>
<% } %>
-
-<% if (htmlWebpackPlugin.options.ga) {
- if (!htmlWebpackPlugin.options.ga.id) {
- throw new Error('ga.id is required to enable google analytics');
- }
-%>
-
-
-
-
-<% } %>