Skip to content

Commit cf74272

Browse files
committed
update nav on window.load
1 parent 25e40ab commit cf74272

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

_data/fingerprints.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
lunr: 2.3.6
22
icons: 715715b9
33
maths: 5414f235
4-
scripts: e83760ff
4+
scripts: 5e21b909
55
search: b74b56ab
66
style: f9070efd

_includes/v.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{%- unless site.suppress_fingerprints -%}
22
?v=
33

4-
{%- assign fingerprints = 'icons: 715715b9,maths: 5414f235,scripts: e83760ff,search: b74b56ab,style: f9070efd' | split: ',' -%}
4+
{%- assign fingerprints = 'icons: 715715b9,maths: 5414f235,scripts: 5e21b909,search: b74b56ab,style: f9070efd' | split: ',' -%}
55
{%- assign found = false -%}
66

77
{%- if jekyll.environment == 'production' -%}

assets/js/scripts.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ document.addEventListener('DOMContentLoaded', function () {
5858
});
5959

6060
// update the menu height if screen changes
61+
// first update on window load to be sure CSS has applied
6162
window.addEventListener('resize', updateMenu);
62-
updateMenu();
63+
window.addEventListener('load', updateMenu);
6364

6465
// loop through all elements and replace with breakpoint elements
6566
if (window.CSS && CSS.supports('display', 'none')) {

0 commit comments

Comments
 (0)