Comments in CSS
-
I purchased the edit custom CSS option on my WP-hosted blog. When I insert a /* comment */ and save the style, the system strips out the comment. Is there any way to force a comment to remain?
The blog I need help with is: (visible only to logged in users)
-
-
Alas. I hope they reconsider that. I guess I can keep a copy of the CSS with comments offline, but have to remember to keep them synchonized! Thanks for the reply.
-
It is done so that all the files take up less space. When you are talking about a large amount of CSS files, this can be a huge amount of space savings. It also makes them load much faster since those lines of text do not have to be sent over the internet to the browser, and the browser does not have to process all those extra lines.
-
On other note: When you save your CSS changes, wordpress actually “compresses” the CSS file and if you view the CSS file from your browser (not through the CSS edit window) it will be one long line or two instead of the normally formatted CSS. Again, this is to minimize storage requirements and to make things load faster.
- The topic ‘Comments in CSS’ is closed to new replies.