Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: rvm_css (v1.2)
Fantastic. Thank you very much for this plugin.
Please can I ask, if my CSS tab textarea is not full of the actual CSS but just:
@import url(‘/_my-stuff/style/my-style.css’);
will the plugin only cache those 50 or so characters (so I am gaining little benefit), or does it import the CSS and cache the full file?
If only the 50 or so characters, then the answer is presumably to just copy the CSS in and forget the @import?
Sorry if this is a newbie-ish question and thanks in advance for any comment.
Cheers, -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
Re: rvm_css (v1.2)
@johnnie, if you really want to minify, you can optimize a lot more. For example (91 chars):
body {
border-left: 1px;
border-right: 1px;
border-top: 1px;
border-bottom: 1px;
}
Can be compressed to (72 chars, 21% reduction):
body{border-left:1px;border-right:1px;border-top:1px;border-bottom:1px;}
But can also be re-written to (16 chars, 82% reduction), which is also easier to read:
body{border:1px}
I think the benefits of minifying don’t outweigh the added code complexity (especially if you’re already compressing CSS using deflate/gzip). It reduces bandwidth usage, but I suspect that on most websites the bandwidth used by serving CSS files is only a few percent of total bandwidth used.
Offline
Re: rvm_css (v1.2)
@alanfluff, you’ll benefit from this plugin, because you avoid the use of textpattern to serve that single import line (instead it’s served from a separate static file, which is many times faster than serving stuff through a PHP script). So basically when CSS loads, it first loads a static file containing the import line, which then in turn loads another static file with the bulk of your CSS code.
You could benefit slightly more if you put the contents of my-style.css directly in the CSS tab textarea.
Offline
Re: rvm_css (v1.2)
Thanks Ruud — I am using the plugin and it is making a mASSIVe difference – quite brilliant :)
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
Re: rvm_css (v1.2)
Thanks a lot man!
Great plug in
Sonríe | Smile . <txp:lover />
Offline
Re: rvm_css (v1.2)
I disabled the plugin. then i deleted it. but in my Preferences > Advanced >
i still see this:
rvm_css_dir _mycss
Should it not revert back to the default line?
…. texted postive
Offline
Re: rvm_css (v1.2)
That is specifically for the plugin. Your CSS is still saved to the database even if you have the plugin active so as long as you have changed the <txp:rvm_css /> tags back to <txp:css /> it should still work correctly. Would be nice if that preference was removed when the plugin is deleted though.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: rvm_css (v1.2)
Yes .. especially as i now have removed it. I just simply use a link to my external css files.
l<ink href="/css/home.css" rel="stylesheet" type="text/css" />
and i can also use JS scripts to choose various css files.
Speaking of external files…. i would love to have a bullet-proof up to date plugin to edit all Forms, Templates (Pages) outside of the CP…. eg in Coda / Espresso. ( The one plugin that is available has to many warnings for me to use that approach : mcw_templates ). Ideally a future version of Textpattern might be able to accommodate external files natively.
Cheers
(Remembrance Day)
…. texted postive
Offline
Re: rvm_css (v1.2)
Check out cnk_versioning
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#100 2009-11-12 04:32:49
Re: rvm_css (v1.2)
MattD wrote:
Check out cnk_versioning
thanks for the link.
But this warning:
Please use this with care! Your pages/forms/css will be deleted from the database, when you delete the corresponding files.
keeps me from wanting to use the plugin. it just sounds too risky.
I would like to see the use of external files as a Preference.
…. texted postive
Offline
#101 2009-11-12 16:30:36
Re: rvm_css (v1.2)
bici wrote:
I disabled the plugin. then i deleted it. but in my Preferences > Advanced >
i still see this:
rvm_css_dir _mycss
Should it not revert back to the default line?
When rvm_css was released, this wasn’t possible. You can remove it manually. It’s the only preference that is added by the plugin.
Offline
#102 2009-11-12 16:42:03
Re: rvm_css (v1.2)
ruud wrote:
bici wrote:
I disabled the plugin. then i deleted it. but in my Preferences > Advanced >
i still see this:
rvm_css_dir _mycss
Should it not revert back to the default line?
When rvm_css was released, this wasn’t possible. You can remove it manually. It’s the only preference that is added by the plugin.
How?
…. texted postive
Offline
#103 2009-11-12 17:14:45
Re: rvm_css (v1.2)
You would need to go into your database and check through the txp_prefs table. It can be removed from there but make sure you have a database backup first. If you aren’t happy working with your database I would just leave it. It’s not causing any harm.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#104 2009-11-13 09:59:13
Re: rvm_css (v1.2)
bici wrote:
How?
Try smd_prefalizer to take a peek through the prefs. Note that rvm_css_dir is a ‘protected’ pref setting due to the way it is inserted into the advanced pane so you will have to manually override smd_prefalizer’s security mode in order to delete it. Check the plugin help for info.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#105 2009-11-13 16:47:15
Re: rvm_css (v1.2)
Could hide it with the plugin methinks.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline