Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: pat_speeder
Ah Ah. So it’s yours now.
What a great demonstration! Thx lot.
Ok. If Ruud is all right, I’ve just updated to version 0.2 which include this help (infos and history into the plugin updated too).
Best regards, Ruud.
P.S. When do you come back in the Team, man?
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat_speeder
Noooo, not mine. Just playing with it ;)
I have no plans for getting back in the team.
Offline
#15 2009-07-27 12:18:44
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: pat_speeder
Patrick
Nice adds to the plugin.
Ruud
Thanks for posting some stats. I take it that’s the page size (byte) reduction you are posting?
— Steve
Offline
Re: pat_speeder
Yes, it’s the page size. Note that actual reduction will vary with how you’ve written your templates, but you do get some idea of how effective it is. Basically if you’re not using gzip/deflate compression yet, that should be the first thing you do to reduce traffic, before using a plugin like this one.
Offline
Re: pat_speeder
[ post deleted on Ruud’s demand ]
Last edited by Pat64 (2009-07-27 20:17:00)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat_speeder
Please don’t release it using my author prefix. If you must, rename it to pat_something.
It’s been suggested before to add such compression to rvm_css, but I don’t think it’s worth the trouble.- the browser caches the style sheet, so it doesn’t get loaded on every page hit.
- after gzip/deflate compression there’s very little left to compress.
- I prefer to keep the style sheet readable, even for visitors.
- if you look at most websites, serving CSS takes up very little of the total bandwidth used. Shaving very little of very little results in a very very small reduction.
- it might break certain CSS hacks.
- adding a copyright comment after first removing all comments seems counter-productive.
Offline
Re: pat_speeder
Ok. The post had been deleted.
Best regards,
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat_speeder
Sorry for the number of realizes. I try to make my best to have a (very) good work ;)
Please refer to the first post for download . And don’t forget to delete/replace your obsolete version from your back-office.
Best regards,
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat_speeder
This looks pretty cool. Is there any way to exempt some parts from compression? I have an autocomplete array served by rah_external_output that breaks when this plugin is active. If not, no big deal— this could come in useful on other sites!
Offline
Re: pat_speeder
Hi John.
Sure. You can use pat_speeder v0.4 instead to choose which page to compress.
Example:
<txp:pat_speeder enable="1" />
at the very top of each your page templates. Then change the attribute to “0” to desable this plugin in the page of your choice.
Best regards,
Last edited by Pat64 (2009-07-31 06:24:52)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat_speeder
I have some problems with flash player embedded via javascript. For some reason when the code is compressed it just doesn’t work right, I’ll post the code here if any one has any suggestions.
Original
<script type="text/javascript">
function createPlayer(theFile) {
var flashvars = {
file:theFile,
autostart:"false",
playlistsize:"239",
playlist:"bottom",
skin: "http://URL.com/TO/SWF.swf",
backcolor: "D7D7D7",
lightcolor:"00B1E9",
frontcolor:"222222",
shuffle: "false",
repeat: "always",
volume: "10"
}
var params = {
wmode:"transparent",
allowfullscreen:"true",
allowscriptaccess:"always"
}
var attributes = {
id:"player1",
name:"player1"
}
swfobject.embedSWF('http://URL.com/TO/SWF.swf', "placeholder1", "100%", "271", "9.0.115", false, flashvars, params, attributes);
}
jQuery(document).ready(function(){createPlayer('http://http://URL.com/TO/XML.xml')});
</script>
Signle Line
<script type="text/javascript"> function createPlayer(theFile) { var flashvars = { file:theFile, autostart:"false", playlistsize:"239", playlist:"bottom", skin: "http://URL.com/TO/SWF.swf", backcolor: "D7D7D7", lightcolor:"00B1E9", frontcolor:"222222", shuffle: "false", repeat: "always", volume: "10" } var params = { wmode:"transparent", allowfullscreen:"true", allowscriptaccess:"always" } var attributes = { id:"player1", name:"player1" } swfobject.embedSWF('http://URL.com/TO/SWF.swf', "placeholder1", "100%", "271", "9.0.115", false, flashvars, params, attributes); } jQuery(document).ready(function(){createPlayer('http://http://URL.com/TO/XML.xml')}); </script>
Offline
Re: pat_speeder
Hi Dan.
This behavior is reported in the plugin’s help. Currently I don’t know why. Try to use version 4 of this plugin instead to desable it on your template where you display this flash player.
I’m trying to find a solution.
Cheers,
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline