Extract polyfills into a separate JS file

This commit is contained in:
2018-10-28 15:11:51 +01:00
parent 9456b8e609
commit 93ab1a7f3b
3 changed files with 61 additions and 7 deletions
+5 -1
View File
@@ -1,4 +1,8 @@
<?php pattern('shared/2-blocks/footer', ['pSite' => 'codesignd']) ?>
<?= js('assets/js/index' . c::get('assets.suffix') . '.js') ?>
<script>
window.fetch || document.write('<?= str_replace('/script', '\\/script', js('assets/js/polyfills' . c::get('assets.suffix') . '.js')) ?>')
</script>
<?= js('assets/js/index' . c::get('assets.suffix') . '.js') ?>
</body>
</html>