Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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,677
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,677
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,677
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: 1,000
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,677
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,677
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

#25 2009-08-06 13:48:24

woof
Member
Registered: 2004-08-01
Posts: 128

Re: pat_speeder

Hi Patrick

This is a realy useful plugin, thanks. A suggestion: It would be really nifty if there was a version of this plugin that you could apply to select areas of your code (ie as wrap tags). For example it would be a solution to this issue

Offline

#26 2009-08-06 14:15:56

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

Re: pat_speeder

Tkx John.

Good idea. I’m trying to add this.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#27 2009-08-18 22:37:04

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: pat_speeder

Very nice the launch site!

BTW: activating the pat_speeder plugin, the icons of Gocom’s rah_textilebar plugin disappear. Any solution?
Thanks in advance for the help.

Offline

#28 2009-08-21 13:35:20

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

Re: pat_speeder

Hi candyman.

rah_textilebar is a back-end plugin ; pat_speeder is a client one. Are you sure you’d got this problem? I can’t reproduce it.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#29 2010-11-12 08:21:12

koguma
New Member
Registered: 2010-11-12
Posts: 4

Re: pat_speeder

Hi,

Unfortunately your plugin does not work with any of the Flabell Flash components. Check it out, they have a bunch of free ones you can test with: http://www.flabell.com

Offline

#30 2011-08-07 15:23:00

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

Re: pat_speeder

All

New version added into this thread first post: version 0.4.c add support for “HTML5/Boilerplate” doctype declaration method (06 Jul 2011).

Enjoy HTML5.


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