Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: pat_speeder
Version 0.4.c:
Added some additional advices into help file. Take advantage of server Gzip compression for all your files (javascript, css, php, images) never mid where they are located. With few lines of code into your .htaccess file (conditional tags to check if Gzip is available on your server).
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
Great plugin it works wonders. Although I just have some issues with Disqus comments loading on my page.’
Update: Yea it seems to have some issues with js.
Last edited by scottcal (2012-06-21 16:45:56)
Offline
Re: pat_speeder
New dedicated website page: http://pat-speeder.cara-tm.com
And a new version 0.5:
Corrects removing spaces between some tags.
Plugin help page: http://pat-speeder.cara-tm.com/help
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
scottcal wrote #262160:
Update: Yea it seems to have some issues with js.
JavaScript is white-space driven language; it sports automatic semicolon insertion feature that works by inspecting newlines. As the plugin removes newlines, it will break previously valid JavaScript.
Pat64 wrote #279912:
And a new version 0.5
This condition doesn’t work:
if ( strpos($buffer, '<pre') < 0 || strpos($buffer, '<script') < 0 ) {
$buffer = preg_replace('/\s+/', ' ', $buffer);
}
strpos() never returns an integer below zero. It either returns the zero-index position of the needle, or boolean false. In this case you want to skip the replace statement when document contains either tags, so you will want to check against false using identical operator (===), joined by and operand rather than or:
strpos($buffer, '<pre') === false && strpos($buffer, '<script') === false
But then again, the check is pretty useless given that almost all pages will contain a script tag. I would recommend taking a look at Minify_HTML, which does the minimum logic needed for more versatile minifying.
Offline
Re: pat_speeder
Oh, Yes, sure! Sorry Jukka.
An old error in this plugin corrected but there was a mismatch with my versions…
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
Hi Pat,
Is there a way to make this plugin work with rvm_css? I’m trying to figure out a way to leave the styles untouched in the db so as to easily change them in the css tab but on save, the styles are minified in the saved external css file.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: pat_speeder
Yeah! Good idea.
But I need to think (how to make) about it.
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
Try this version: http://pat-speeder.cara-tm.com
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
Been using this plugin for a long time on multiple sites, and I finally found a problem. (That means no problems until now! Yay!)
When using it on a site that uses Textpattern’s comment system, pat_speeder removes all linebreaks from the comment after one clicks “Preview”. This results in commenters seeing a comment preview with all the paragraph breaks they expected; but if they click “Submit” without re-entering all the linebreaks, the comment is saved as a wall of text without paragraph breaks.
Is this a known issue? Is there a known work-around? I’ve had to disable this plugin on this site until I can find a fix—but the others continue working flawlessly, because they don’t use Textpattern’s commenting system.
Offline
Re: pat_speeder
Hi ;)
Tks to reporting. Didn’t see this problem. I’ll try to find a solution.
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
Thank you Pat! Wow, that was fast.
Offline
Re: pat_speeder
Sorry, I can’t reproduce the behaviour. I send comments without any problems. Can you send me a screen capture of your problem?
Which plugin version do you use?
The last one is v. 0.7 and you can download it here: http://pat-speeder.cara-tm.com
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
Thank you Patrick. I was using v0.5, but upgrading to the latest version resolved the problem!
Offline
Re: pat_speeder
HI Patrick,
I am testing pat_speeder_v0.4 on txp4.6 on a test install. All looks fine except I get unregistered_tag notice when I am on debug,
Also I am not sure which is the latest version as http://pat-speeder.cara-tm.com/en talks about 0.7.3 but the download link returns a 404.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: pat_speeder
Hi Yiannis ;)
pat-speeder v 0.4. is a very old version now.
Please, try the pat_speeder v 0.7.3 instead which had support for upcoming Textpattern 4.6: https://github.com/cara-tm/pat-speeder
Download link corrected: http://pat-speeder.cara-tm.com
Last edited by Pat64 (2016-04-17 14:34:47)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline