<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.1">
</HEAD>
<BODY>
Echo everything David suggests is good, just to add to that list there is something I have mentioned on list before which gave us a massive boost. <BR>
<BR>
We used to have a lot of JS files which we used to segment and modularise our code just to make it manageable - the down side to this was browsers download JS serially to resolve dependencies and not in parallel like other page assets. Combining multiple JS files into one then minifying will help you out also. <BR>
<BR>
If you are using a build process of course you could get it to concatenate your nice manageable files into one and compress. <BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<BR>
</TD>
</TR>
</TABLE>
On Mon, 2009-11-30 at 16:54 +0000, David Goodwin wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Gavin Kimpson wrote:
> Hi guys,
>
> I'm building a web application that is kinda heavy on the javascript -
> and there does seem some slowdown because of it, what techniques do
> you guys use to 'speed up' your javascript in your web-apps?
>
> Cheers
a) make sure Apache / whatever gzip compresses it as it goes out
b) make sure Apache / whatever sets good expirey headers (i.e. some time
in the future)
c) host the JS files on a different domain name (or use e.g. Google's JS
library hosting)
There are obviously whitespace removers/minifiers etc, but I'd expect
them to not be all that better than e.g. mod_deflate on apache
David.
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>