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

Only load front end CSS when it is needed #1455

Merged
merged 8 commits into from
Apr 30, 2020

Conversation

josephscott
Copy link
Contributor

This checks to make sure that a Coblock is being used before requiring the CSS to be loaded on the front end of the site. This is to address #1454

In my basic tests this worked fine, however I'd like to see it get broader testing to make sure I haven't missed other conditions.

This checks to make sure that a Coblock is being used before requiring the CSS to be loaded on the front end of the site.  This is to address godaddy-wordpress#1454 

In my basic tests this worked fine, however I'd like to see it get broader testing to make sure I haven't missed other conditions.
@richtabor
Copy link
Contributor

Good stuff, we'll run it though some testing. I'll hand this to you @jrtashjian. Should work find, though we'll need to make sure the assets load on index/archive views.

@richtabor richtabor added [Priority] Low This issue/pull request is not immediate [Status] In Progress Tracking issues with work in progress [Type] Enhancement Something new that adds functionality labels Apr 16, 2020
@richtabor richtabor added this to the Next Release milestone Apr 16, 2020
@josephscott
Copy link
Contributor Author

@richtabor / @jrtashjian - any thoughts on when this could be reviewed and included in a new release?

@jrtashjian
Copy link
Member

Hey @josephscott, I’m planning to review this during the current release cycle. If all looks/works well (which at first glance it does) then it’ll make it into the release next Thursday.

@josephscott
Copy link
Contributor Author

Sounds good!

Copy link
Member

@jrtashjian jrtashjian left a comment

Choose a reason for hiding this comment

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

This works great! I made a couple fixes around global usage and added automated tests.

@jrtashjian
Copy link
Member

Closes #1454

@jrtashjian jrtashjian merged commit 2263dfb into godaddy-wordpress:master Apr 30, 2020
@jrtashjian jrtashjian linked an issue Apr 30, 2020 that may be closed by this pull request
@jrtashjian jrtashjian added the [Status] Ready to Merge Tracking pull requests that are 100% approved and passing, ready to merge into master label Apr 30, 2020
@jrtashjian jrtashjian removed the [Status] In Progress Tracking issues with work in progress label Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Priority] Low This issue/pull request is not immediate [Status] Ready to Merge Tracking pull requests that are 100% approved and passing, ready to merge into master [Type] Enhancement Something new that adds functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only load front end CSS when it is needed
3 participants