You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,3 +96,21 @@ This will result in a document along the lines of:
96
96
</body>
97
97
</html>
98
98
```
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
+
varENV= {
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