Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-07-26 18:55:28

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,638
GitHub Twitter

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).

pat_speeder v0.2

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

#14 2009-07-26 21:27:07

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#16 2009-07-27 12:46:42

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#17 2009-07-27 18:54:28

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,638
GitHub Twitter

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

#18 2009-07-27 19:58:30

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#19 2009-07-27 20:18:26

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,638
GitHub Twitter

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

#20 2009-07-28 13:52:34

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,638
GitHub Twitter

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

#21 2009-07-31 00:44:02

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

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

#22 2009-07-31 05:09:16

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,638
GitHub Twitter

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

#23 2009-08-06 05:07:17

danwoodward
Member
From: Brooklyn NY
Registered: 2006-08-06
Posts: 51
Website

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

#24 2009-08-06 07:02:36

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,638
GitHub Twitter

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

Board footer

Powered by FluxBB