HELP: Minify.php

Status
Not open for further replies.

takuhii

New Member
Messages
344
Reaction score
0
Points
0
I am TRYING to use Minify.php on my website to reduce the amount of HTTP requests, ergo, prevent me from bein gsuspended every x minutes for high resource usage.

Is anyone else using Minify.php and does it work?
Basically I was under the impression you "installed it" referenced it in your .HTACCESS (or via PHP code) and it automatically re-wrote your JS and CSS requests into one long string. Mine doesn't appear to be working, I have in "installed" in my root (PUBLIC_HTML) folder and referenced correctly in my .HTACCESS, but nothing is happening to my JS and CSS requests, I still have lots :(

Any help on this would be greatly appreciated as I am not a developer, and struggle with the simplest of tasks...
 

Slothie

New Member
Messages
1,429
Reaction score
0
Points
0
What's the site you're at?


If its only in your htaccess, you would have lots of requests for minify.php as it doesn't combine the calls automatically, if you want to do that you'd have to follow their guide @ http://code.google.com/p/minify/wiki/UserGuide

If its done purely in .htaccess what happens is it applies JSmin (or the php port of) the JS files, making them smaller and easier to load.


Do bear in mind that this takes up more CPU power than serving the files statically, its more to reduce bandwidth consumption than anything else.
 

takuhii

New Member
Messages
344
Reaction score
0
Points
0
Thanks for the help though, I thought Minify wopuldn't be as simple as that, but I was hoping...

Looks like I'll have to re-write "my theme" to take advantage of Minify.

My website is at: http://takuhii.x10hosting.com/

You'll notice I'm also experiencing a JS error on the homepage, but I can't figure out what it is... (Object expected (???WTF!))
 
Status
Not open for further replies.
Top