[Phpmyadmin-devel] Concatenating js files

Michal Čihař michal at cihar.com
Tue Dec 18 16:07:04 CET 2012


Hi

Dne Tue, 18 Dec 2012 14:34:00 +0000
Rouslan Placella <rouslan at placella.com> napsal(a):

> I've written a patch[0] that will concatenate js files on the server 
> side before sending them to the client. This will reduce the number of 
> http requests for js files to one per page. So, effectively, there will 
> be one request for js files when a user first loads a pma page and 
> subsequently there will 0 or 1 request (depending if we already have the 
> needed js file already loaded client side) for any additional page the 
> user navigates to. The patch would also close feature request[1] #3583340.
> 
> The performance benefits should be pretty obvious. You can see a 
> screenshot[2] of the firebug network panel that I took before and after 
> the patch. In the screenshot, I started on the main page and went to 4 
> different server status pages afterwards. This was on a local 
> installation, remote installations should benefit even more...
> 
> The reason that I'm bringing this issue up on the mailing list is that 
> there is also a drawback. Debugging js files will become somewhat more 
> complex, since we would have to figure out which file a problem might be in.
> 
> So the question is: are we willing to pay the price for this performance 
> boost?

I think it would be good improvement. Have you checked if it works
correctly with minified versions we ship?

-- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20121218/025ed003/attachment.sig>


More information about the Developers mailing list