News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Gonzalo Ayuso's Blog:
Speed up page page load combining javascript files with PHP
February 21, 2011 @ 13:01:54

Gonzalo Ayuso has a handy performance tip for getting that little bit extra speed from your page load times - combining Javascript with PHP files.

One of the golden rules when we want a high performance web site is minimize the HTTP requests. Normally we have several JavaScript files within our projects. It's a very good practice to combine all our JavaScript files into an only one file. [...] But if your project is alive and you are changing it, it's helpful to spare your JavaScript files between several files. [...] So we need to choose between high performance and development comfort.

He includes a quick script that runs through your javascript directory (recursively), grabs all of the javascript content from each, combines and minifies them to serve gzip compressed out to the browser.

0 comments voice your opinion now!
javascript tutorial combine minify gzip page load performance


blog comments powered by Disqus

Similar Posts

DevShed: Database and Password Security for Web Applications

NETTUTS.com: How to Create a Wordpress Theme from Scratch: Part 2

Dave Marshall's Blog: Defending against Cache Stampedes

Muhammad Hussein Fattahizadeh's Blog: Zend Config tree solution

Zend Developer Zone: Quick Start Symfony DI (Dependency Injection) Tutorial


Community Events

Don't see your event here?
Let us know!


framework example interview library php7 introduction conference extension release laravel performance voicesoftheelephpant symfony2 podcast application community opinion series api version

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework