Skip to content

Commit

Permalink
update docs for strict optiimization status (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 authored Aug 19, 2020
1 parent 8f8b4e1 commit 61c2f28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions www/pages/about/how-it-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ customElements.define('page-template', HomeTemplate);
```

Caveats:
- Currently [not working during development (inside a LitElement `render` block)](https://github.com/ProjectEvergreen/greenwood/issues/413)
- Code like [`fetch` and `setTimeout` in your JavaScript will not be available](https://github.com/ProjectEvergreen/greenwood/blob/v0.8.0/www/components/banner/banner.js#L37)
- Your [CSS selectors cannot target custom elements](https://github.com/thegreenhouseio/www.thegreenhouse.io/pull/158/) (since `customElements.define` will not run)

Expand Down
2 changes: 1 addition & 1 deletion www/pages/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Which would be equivalent to:

### Optimization
Greenwood supports a couple different options for how it will generate a production build, depending on how much JavaScript you will need to serve your users.
- **strict** (recommended for basic sites): What you write will only be used to pre-render your application. No JavaScript is shipped at all and will typically yield the best results in regards to performance.
- **strict** (expiremental, but recommended for basic sites): What you write will only be used to pre-render your application. No JavaScript is shipped at all and will typically yield the best results in regards to performance.
- **spa** (default): This will pre-render your site _and_ also ship a full "SPA" experience for your users.

> _You can learn more about optimizations in our [How It Works](/about/how-it-works) docs._
Expand Down

0 comments on commit 61c2f28

Please sign in to comment.