Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: 'pushing' vs direct array assignment ? Date: Tue, 4 Jun 2013 12:47:50 -0600 Lines: 26 Message-ID: References: <7dc473f5-c0e8-415b-92e1-f6201220fe9d@j8g2000yqa.googlegroups.com> X-Trace: individual.net ihnbSuWt+Fk4uf9hTaRv3gk0kZfNiWpH/eMRHPLxQTPaRsaMgt Cancel-Lock: sha1:LSuodU3K2nAODE1SsUDVEd/L5GM= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.javascript:20143 Martin said: > >> Once or twice for the 'big' page --- which I've now shrunk down to >> 234K -- and with gzip its now dow to ~~ 57K > > I am missing someting, here. How do you > zip JavaScript code and still get it to run > in the browser? Hi Martin: In your Apache Server configuration file (httpd.conf), ensure the following are set: LoadModule deflate_module modules/mod_deflate.so then in your specific virtual host ensure the following are added: AddOutputFilterByType DEFLATE text/html text/plain text/xml AddOutputFilterByType DEFLATE text/css text/javascript AddOutputFilterByType DEFLATE application/x-javascript -Mel