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

Simplify/speed up editor style process. #1560

Merged
merged 1 commit into from
Oct 14, 2015
Merged

Conversation

JulienMelissas
Copy link
Contributor

This is in response to #1552.

After playing around, I think the best solution is just to add a _tinymce.scss file in /assets/layouts/ where we target the tinymce editor and can put conditional styles in there, and then just reference the main.css file in the wp editor.

This cuts styles compiling time of the default repo in half (roughly) because we're no longer creating 2 files, and no longer referencing a large scss file and injecting it into another one.

…mce.scss` partial. This cuts styles compiling time in about half.

`add_editor_style` now just references `main.css`
@chrisatomix
Copy link
Contributor

Just backported this onto one of our in-build Sage sites to see if it works, the Styles compile time immediately dropped from 3.8s to 2.3s (very happy with that, it's a massive site). WP Editor is still working perfectly too.

@JulienMelissas
Copy link
Contributor Author

@chrisatomix great to hear it!!! Thanks for the feedback.

@aumo
Copy link

aumo commented Oct 14, 2015

That is what I ended up doing when looking for a way to reduce the assets compile time.

@austinpray
Copy link
Contributor

Looks good here

retlehs added a commit that referenced this pull request Oct 14, 2015
Simplify/speed up editor style process.
@retlehs retlehs merged commit 695d7a5 into roots:master Oct 14, 2015
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.

5 participants