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
{{ message }}
Repository navigation
suppressBrowserRender should either be renamed or updated #42
As of 0.4.0, the suppressBrowserRender option doesn't really do what it says on the tin. Since the instance-initializer no longer injects {{head-layout}}, returning early from it doesn't actually suppress any rendering.
@reidab I think maybe that shouldn't be config anymore. Since the consuming application is responsible now for when head-layout component gets rendered I'd expect to have that logic co-located with the component call.
Just a heads up - we are using this to dynamically select which CSS gets loaded for our app, when we disable the suppressBrowserRender in fastboot when the app rehydrates the css vanishes as everything in {{head-layout}} gets removed. Not sure what the right name for this variable is but it most likely needs to stay around to prevent triggering a CSS reload.
I have been running into this issue as well.
Fastboot+Ember renders the head, along with all of its special bits (meta tags, structured data etc)
Ember comes down the pipe and crushes all of those bits.
If I do what @rondale-sc suggests (wrap the {{head-layout}} in a {{fastboot.isFastBoot}} check. It fixes my problem.
Activity
rwjblue commentedon Nov 6, 2017
cc @rondale-sc
rondale-sc commentedon Nov 20, 2017
@reidab I think maybe that shouldn't be config anymore. Since the consuming application is responsible now for when
head-layoutcomponent gets rendered I'd expect to have that logic co-located with the component call.Something like:
If that is the case we need to update the README to remove
suppressBrowserRenderas an option. And remove any logic around it.@rwjblue thoughts?
nolman commentedon Apr 30, 2018
Just a heads up - we are using this to dynamically select which CSS gets loaded for our app, when we disable the suppressBrowserRender in fastboot when the app rehydrates the css vanishes as everything in {{head-layout}} gets removed. Not sure what the right name for this variable is but it most likely needs to stay around to prevent triggering a CSS reload.
Duder-onomy commentedon Dec 12, 2018
I have been running into this issue as well.
Fastboot+Ember renders the head, along with all of its special bits (meta tags, structured data etc)
Ember comes down the pipe and crushes all of those bits.
If I do what @rondale-sc suggests (wrap the
{{head-layout}}in a{{fastboot.isFastBoot}}check. It fixes my problem.