Skip to content

Commit f6a4ecb

Browse files
committed
Add info about suppressBrowserRender to readme
1 parent 5c1851c commit f6a4ecb

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,21 @@ This will result in a document along the lines of:
9696
</body>
9797
</html>
9898
```
99+
100+
### Fastboot Only
101+
102+
The primary need for this library is to support various bots and web crawlers. To that end the head content is only truly needed in a server rendered (ie FastBoot) environment. However by default the library will keep the head content in sync with any transitions/data changes that occur in your Ember App while running in the browser. This can be useful for development and/or debugging.
103+
104+
If you do not wish to have the head content "live" while running in browser you can restrict this library to work only in FastBoot by adding the following to your `config/environment.js`:
105+
106+
```javascript
107+
module.exports = function(environment) {
108+
var ENV = {
109+
'ember-cli-head': {
110+
suppressBrowserRender: true
111+
}
112+
};
113+
}
114+
```
115+
116+
If you make use of this mode the content of `<head>` will be the static FastBoot rendered content through the life of your App.

0 commit comments

Comments
 (0)