Skip to content
Permalink
Browse files

Closes #183 - updates documentation

  • Loading branch information...
codewithkyle committed Jul 25, 2019
1 parent b6f81f3 commit 49fbcba3bcc171130a2212d5b7d7abdacc554cf9
Showing with 14 additions and 12 deletions.
  1. +7 −0 CHANGELOG.md
  2. +2 −2 README.md
  3. +5 −10 templates/_layouts/global-javascript.twig
@@ -1,3 +1,10 @@
## 0.2.4 - UNRELEASED

### Added

- Adds: updated project setup section of the readme
- Adds: updated IE 11 polyfills to use `nomodule` attribute instead of wrapping the `document.write()` method in a render blocking script

## 0.2.3 - 2010-07-25

### Added
@@ -56,7 +56,7 @@ composer install
6: Run the setup script by running the following command in your terminal:
```script
npm run setup
npm run dev && npm run setup
```
To finish follow the Craft CMS installation in the browser. If the browser doesn't automatically open navigate to the `/webmaster` route.
@@ -110,7 +110,7 @@ npm ci
5: Run the setup script by running the following command in your terminal:
```script
npm run setup
npm run dev && npm run setup
```
To finish follow the Craft CMS installation in the browser. If the browser doesn't automatically open navigate to the `/webmaster` route.
@@ -1,13 +1,8 @@
<script>
{# IE 11 polyfills #}
if(!!window.MSInputMethodContext && !!document.documentMode && (window.chrome === undefined)){
document.write('<script type="text/javascript" src="{{ alias('@rootUrl')|trim('/') ~ '/assets/polyfills/array-from.js' }}"><\/script>');
document.write('<script type="text/javascript" src="{{ alias('@rootUrl')|trim('/') ~ '/assets/polyfills/closest.js' }}"><\/script>');
document.write('<script type="text/javascript" src="{{ alias('@rootUrl')|trim('/') ~ '/assets/polyfills/remove.js' }}"><\/script>');
document.write('<script type="text/javascript" src="{{ alias('@rootUrl')|trim('/') ~ '/assets/polyfills/promise.js' }}"><\/script>');
document.write('<script type="text/javascript" src="{{ alias('@rootUrl')|trim('/') ~ '/assets/polyfills/fetch.js' }}"><\/script>');
}
</script>
<script nomodule type="text/javascript" src="{{ alias('@rootUrl')|trim('/') ~ '/assets/polyfills/array-from.js' }}"></script>
<script nomodule type="text/javascript" src="{{ alias('@rootUrl')|trim('/') ~ '/assets/polyfills/closest.js' }}"></script>
<script nomodule type="text/javascript" src="{{ alias('@rootUrl')|trim('/') ~ '/assets/polyfills/remove.js' }}"></script>
<script nomodule type="text/javascript" src="{{ alias('@rootUrl')|trim('/') ~ '/assets/polyfills/promise.js' }}"></script>
<script nomodule type="text/javascript" src="{{ alias('@rootUrl')|trim('/') ~ '/assets/polyfills/fetch.js' }}"></script>

{% set globalAssets = craft.papertrain.getAssetPaths(['runtime', 'globals', 'uuid', 'device-manager', 'env']) %}

0 comments on commit 49fbcba

Please sign in to comment.
You can’t perform that action at this time.