Skip to content

Commit 916747f

Browse files
committed
feat (wp) load polyfill in wp theme
1 parent 3ed3fb1 commit 916747f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inc/async/loadfont.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<!-- Polyfill.io -->
2+
<script src="https://cdn.polyfill.io/v3/polyfill.min.js?features=es5,es6,fetch,Array.prototype.includes,CustomEvent,Element.prototype.closest,NodeList.prototype.forEach"></script>
3+
14
<script>
25
// inline loadJS
36
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}

0 commit comments

Comments
 (0)