More optimizations
This commit is contained in:
parent
abcc50a4ba
commit
2d38f00d49
|
@ -82,3 +82,4 @@ gtag('config','{{ site.data.google_analytics.id }}');
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
|
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
|
||||||
|
<script>(function(H){H.className=H.className.replace(/\bNoJs\b/,'WithJs')})(document.documentElement)</script>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
/* blank */
|
|
@ -1,6 +1,7 @@
|
||||||
import wrapify from '../wrapify'
|
import wrapify from '../wrapify'
|
||||||
import ready from 'dom101/ready'
|
import ready from 'dom101/ready'
|
||||||
import onmount from 'onmount'
|
import onmount from 'onmount'
|
||||||
|
import addClass from 'dom101/add-class'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Behavior: Wrapping
|
* Behavior: Wrapping
|
||||||
|
@ -8,6 +9,9 @@ import onmount from 'onmount'
|
||||||
|
|
||||||
ready(() => {
|
ready(() => {
|
||||||
const body = document.querySelector('[data-js-main-body]')
|
const body = document.querySelector('[data-js-main-body]')
|
||||||
if (body) { wrapify(body) }
|
if (body) {
|
||||||
|
wrapify(body)
|
||||||
|
addClass(body, '-wrapified')
|
||||||
|
}
|
||||||
setTimeout(() => { onmount() })
|
setTimeout(() => { onmount() })
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang='en'><head>
|
<html class='NoJs' lang='en'><head>
|
||||||
|
|
||||||
{% include 2017/head.html %}
|
{% include 2017/head.html %}
|
||||||
{% include 2017/article-schema.html page=page %}
|
{% include 2017/article-schema.html page=page %}
|
||||||
|
|
|
@ -69,3 +69,18 @@ a:hover {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Hide markdown before it's wrapped.
|
||||||
|
*/
|
||||||
|
|
||||||
|
html.WithJs .MarkdownBody {
|
||||||
|
& {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.-wrapified {
|
||||||
|
opacity: 1;
|
||||||
|
transition: opacity 250ms linear;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 130px;
|
height: 130px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Prelude */
|
/* Prelude */
|
||||||
|
|
|
@ -47,6 +47,12 @@ module.exports = {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
// Never bundle jQuery
|
||||||
|
'jquery': join(__dirname, '..', '_js/helpers/noop.js')
|
||||||
|
}
|
||||||
|
},
|
||||||
stats: 'minimal',
|
stats: 'minimal',
|
||||||
plugins: [
|
plugins: [
|
||||||
// Optimize module ID's for vendor chunks
|
// Optimize module ID's for vendor chunks
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue