-
Notifications
You must be signed in to change notification settings - Fork 815
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
Custom css/4.5 changes #5974
Custom css/4.5 changes #5974
Conversation
@georgestephanis can you explain the context for this changeset? |
6ed8228
to
63d364f
Compare
So, this pull does two things. 1191c3ad711ed8247289077fdc7ed62ea77afeca updates CodeMirror to their current release -- we were running off an ancient version. It concats the relevant libraries and is self-contained. These three commits: 0db731a572d623b04bdcb4a87b6db4d93b4befe2 build out some of our legacy Custom CSS behavior by letting WordPress link to the stylesheet for better caching across pages, rather than embedding it directly in the dom every time -- but only if the length of the css is over 2,000 characters. Below that, it's tiny enough that the additional HTTP request probably isn't worthwhile. |
If someone has a massive stylesheet pasted into Custom CSS, it probably should be embedded via a `<link>` tag, instead of just dumped on the page.
63d364f
to
14874e8
Compare
Updated the branch to remove the update to codemirror, as we were experiencing some problems in testing. Things are working great for me now & this tests well. @zinigor could you please give it a last review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, works well. One thing that we may want to do in the future is to use etags to determine if we need to actually send the response. That would let us reduce stylesheet waiting time even more.
Merged to 4.5 fc8be3f |
CHangelog: add #5457 Changelog: add #5487 Changelog: add #5708 Changelog: add #5879 Changelog: add #5932 Changelog: add #5963 Changelog: add #5968 Changelog: add #5996 Changelog: add #5998 Changelog: add #5999 Changelog: add #6012 Changelog: add #6013 Changelog: add #6014 Changelog: add #6015 Changelog: add #6023 Changelog: add #6024 Changelog: add #6030 Changelog: add #5465 CHangelog: add #6063 Changelog: add #6025 Changelog: add #5974 Changelog: add #6059 Changelog: add #6046 Changelog: add #5418 Changelog: move things around and add missing information. Changelog: add #5565 Changelog: add #6087 Changelog: add #6095
Changelog: add #5867 Changelog: add #5874 Changelog: add #5905 Changelog: add #5906 Changelog: add #5931 Changelog: add #5933 Changelog: add #5934 Bring over 4.4.2 changelog from branch-4.4 @see 18012a3 Changelog: add #5976, #5978, #5983 Changelog: add #5917 Changelog: add #5832 Changelog: add 4.4.2 release post link. CHangelog: add #5457 Changelog: add #5487 Changelog: add #5708 Changelog: add #5879 Changelog: add #5932 Changelog: add #5963 Changelog: add #5968 Changelog: add #5996 Changelog: add #5998 Changelog: add #5999 Changelog: add #6012 Changelog: add #6013 Changelog: add #6014 Changelog: add #6015 Changelog: add #6023 Changelog: add #6024 Changelog: add #6030 Changelog: add #5465 CHangelog: add #6063 Changelog: add #6025 Changelog: add #5974 Changelog: add #6059 Changelog: add #6046 Changelog: add #5418 Changelog: move things around and add missing information. Changelog: add #5565 Changelog: add #6087 Changelog: add #6095 Readme: add @tyxla to the list of contributors. Improved changelog for your readability and enjoyment updated the release date finalizing the changelog with a few more edits
No description provided.