I notice that somehow my image gallery animation is very jaggy when I view it from google app engine. The weird thing is when I open the HTML page in my local box,not through google app engine, the animation is very very smooth.
Some helpful people from stack over flow got me thinking about java script best practices and performance. I came across this very nifty firebug plugin for firefox 3.5 + in google code, called page speed. This tool is very handy to analyze ways to optimize your webpage. This is what the plugin say about my image gallery:
I decided to investigate how to resolve some of the critical items on the list
2. Enabling Compression
We can configure our web servers to send our web page in gZip. gzip is based on the DEFLATE algorithm, which is a combination of LZ77 and Huffman coding. DEFLATE was intended as a replacement for LZW and other patent-encumbered data compression algorithms which, at the time, limited the usability of compress and other popular archivers.Our browser need to send a HTTP request: ‘
Accept-Encoding: gzip, deflate' to let the server know that our browser can handle gZip files. The web server will then send back a response saying : '
' to tell our browser that it is sending back a gZip-ed file.
This is how we can enable gZip compression:
Add the following entry to the ‘.htAccess’ file
# compress all text & html: AddOutputFilterByType DEFLATE text/html text/plain text/xml # Or, compress certain file types by extension: <files *.html=""> SetOutputFilter DEFLATE </files>
Edit ‘/conf/server.xml’ and add to the HTTP Connector configuration something like this:
<connector port="8080" maxhttpheadersize="8192" maxthreads="150" minsparethreads="25" maxsparethreads="75" enablelookups="false" redirectport="8443" acceptcount="100" connectiontimeout="20000" disableuploadtimeout="true" compression="on" compressionminsize="2048" nocompressionuseragents="gozilla, traviata" compressablemimetype="text/html,text/xml"></connector>
So far I can’t find any evidence that Google App Engine support compression. I need to do further research on Google App Engine.