Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear fast boot rendered head on browser boot #2

Merged
merged 3 commits into from
Mar 1, 2016
Merged

Conversation

ronco
Copy link
Collaborator

@ronco ronco commented Feb 16, 2016

Split initializers into fastboot & browser flavors.

Use placeholder meta tags for marking extent of head.hbs content.

Split initializers into fastboot & browser flavors.

Use placeholder meta tags for marking extent of head.hbs content.
@ronco
Copy link
Collaborator Author

ronco commented Feb 16, 2016

@tomdale @rwjblue comments welcome.

.nextUntil('meta[name="ember-cli-head-end"] ~')
.addBack()
.remove();
const container = instance.lookup ? instance : instance.container;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be able to remove this conditional, fastboot only supports ember 2.3.0+ so instance.lookup should always be present.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. 👍

@rwjblue
Copy link
Member

rwjblue commented Feb 16, 2016

This requires a shared package to ensure that fastboot version doesn't run when it ember-cli-fastboot is not present (since this addon still supports that world).

@tomdale this is he scenario that I was explaining on the fastboot/browser initializer stripping PR.

@rwjblue
Copy link
Member

rwjblue commented Feb 16, 2016

See ember-fastboot/ember-cli-fastboot#110 (comment) for details on filtering the initializers.

@tomdale
Copy link

tomdale commented Mar 1, 2016

Is this good to go?

@ronco
Copy link
Collaborator Author

ronco commented Mar 1, 2016

@tomdale haven't tested out the filter module as much as I plan to yet, but I should be able to cut a new release of this addon today.

ronco added a commit that referenced this pull request Mar 1, 2016
Clear fast boot rendered head on browser boot
@ronco ronco merged commit 789b62e into master Mar 1, 2016
@ronco ronco deleted the kill-double-head branch March 1, 2016 15:29
@ronco
Copy link
Collaborator Author

ronco commented Mar 1, 2016

@tomdale just published as 0.0.4

@tomdale
Copy link

tomdale commented Mar 1, 2016

You're the hero Gotham needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants