Skip to content

Commit 321b87c

Browse files
committed
feat (polyfill) load service with closest and foreach support
1 parent fa402b0 commit 321b87c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/templates/partials/footer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
</div><!-- Main -->
2626

2727
<?php require 'assets/img/icons/icons.svg'; ?>
28+
29+
<!-- Polyfill.io -->
30+
<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=NodeList.prototype.forEach%2CElement.prototype.closest"></script>
31+
2832
<script>
2933
// inline loadJS
3034
function loadJS(e,t){"use strict";var n=window.document.getElementsByTagName("script")[0],o=window.document.createElement("script");return o.src=e,o.async=!0,n.parentNode.insertBefore(o,n),t&&"function"==typeof t&&(o.onload=t),o}
@@ -37,6 +41,8 @@ function loadJS(e,t){"use strict";var n=window.document.getElementsByTagName("sc
3741
loadJS('assets/js/vendor_async/fonts-css-async.js');
3842
}
3943
</script>
44+
45+
<!-- Theme js -->
4046
<script src="assets/app.js" async defer></script>
4147
</body>
4248
</html>

0 commit comments

Comments
 (0)