Skip to content

Commit

Permalink
Add LUX
Browse files Browse the repository at this point in the history
  • Loading branch information
csswizardry committed Mar 11, 2017
1 parent da1c4a4 commit 28ce9f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

<link rel="preconnect" href="https://www.google-analytics.com">

{% include lux.html %}

<style>

{% include css/csswizardry.min.css %}
Expand Down
5 changes: 5 additions & 0 deletions _includes/lux.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script src="https://cdn.speedcurve.com/js/lux.js?id=47684395" async defer></script>
<script>
LUX = window.LUX || {};
LUX.samplerate = 100;
</script>
4 changes: 2 additions & 2 deletions sw.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var cacheName = 'csswizardry:0024';
var cacheName = 'csswizardry:0026';
var cacheFiles = [
'/',
'/about/',
Expand Down Expand Up @@ -53,7 +53,7 @@ self.addEventListener('fetch', function(event) {
// Empty out any caches that don’t match the ones listed.
self.addEventListener('activate', function(event) {

var cacheWhitelist = ['csswizardry:0024'];
var cacheWhitelist = ['csswizardry:0026'];

event.waitUntil(
caches.keys().then(function(cacheNames) {
Expand Down

0 comments on commit 28ce9f2

Please sign in to comment.