If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Web application optimize/minify it for traffic/bandwidth usage

hi all, i m back with another question.

i m developing on a Web Application Using PHP/MySQL. everything is going fine. now i want to optimize it for traffic/bandwidth usage. i have also tried some trick s to minify HTML and CSS using regex replace also "ob_gzhandler". but i ve got some errors while minifiying Javascripts.

To put it into a different perspective... Your question is like asking "What should I do to make a good car?" There is no way to answer with anything specific. Each application/site has many different ways it could be optimized, but without seeing any specific concerns or knowing anything about where there might be room for optimization the most anyone can hope to give is generic advice.

So on that note, I suggest reading articles and white papers on optimization.

If you run into any specific problems (such as your comments breaking your minifying of your javascript) post back and I'm sure someone will be better able to give you specific advice.

Hopefully all those processor intensive replace calls are only done once when moving your code into production. Otherwise what little gain you'll get by reduced file sizes will be lost in the processing time it takes to produce the files to the server for sending to the client.

There are usually several types of things you can look at to speed up a site. Bandwidth required (number of connections needed), file sizes, processing time, memory usage, etc...Focusing on just one of those at the expense of others won't usually show much overall gain in the end.

you said right. i m using those functions to compress output before being sent to client so that it requires less traffic as this web application will also be accessed on smart phones. and also the content is database driven so I can just compress the output.