News Feed
Jobs Feed
Sections




News Archive
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

Giorgio Sironi's Blog: Stop writing foreach() cycles

Stefan Mischook's Blog: Video Tutorial: Processing forms with PHP, Part 3

PHP-GTK Community Site: Building a submenu in a GtkMenubar

Zend Developer Zone: Wrapping C++ Classes in a PHP Extension

NETTUTS.com: Can You Hack Your Own Site? A Look at Some Essential Security Considerations


Community Events











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


development example release unittest object code framework conference functional community series language podcast interview opinion composer zendframework2 tool testing introduction

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