Skip to content

inline style-min.css - #16039

Merged
wjordan merged 1 commit into
stagingfrom
inline-styles
Jun 22, 2017
Merged

inline style-min.css#16039
wjordan merged 1 commit into
stagingfrom
inline-styles

Conversation

@wjordan

@wjordan wjordan commented Jun 22, 2017

Copy link
Copy Markdown
Contributor

Followup to #15790 and #15988. This PR refactors duplicated css-bundling logic from style.css and style-min.css into a combine_css page helper, and uses this to inline style-min.css where applicable.

This PR should not be merged until after #16031 which reduces the total size of style-min.css substantially (because it removes the font CSS from the bundle).

refactor duplicated combine_css logic into page helper.
@wjordan
wjordan merged commit a8e51cd into staging Jun 22, 2017
@wjordan
wjordan deleted the inline-styles branch June 22, 2017 19:37
%link{rel:'stylesheet', type:'text/css', href:'/style-min.css'}
=inline_css 'style-min.css'
-else
%link{rel:'stylesheet', type:'text/css', href:'/style.css'}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we should still use style.css if we're on csedweek.org too. I'll prep a PR to fix.

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.

2 participants