Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
high performance site and prototype
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ACES Direct  
View profile  
 More options Jul 21 2008, 5:27 am
From: ACES Direct <i...@acesdirect.nl>
Date: Mon, 21 Jul 2008 02:27:38 -0700 (PDT)
Local: Mon, Jul 21 2008 5:27 am
Subject: high performance site and prototype
Hi,

The current prototype.js is about 130kb, on a high performance site
this is quite a lot. Does anyone have an idea how I can only use the
Ajax portion of prototype.js so the .js file gets smaller?

Thanks,

Greetings, Bram


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christophe Porteneuve  
View profile  
 More options Jul 21 2008, 6:11 am
From: Christophe Porteneuve <t...@tddsworld.com>
Date: Mon, 21 Jul 2008 12:11:02 +0200
Local: Mon, Jul 21 2008 6:11 am
Subject: Re: [Proto-Scripty] high performance site and prototype
Hey Bram,

ACES Direct a écrit :

> The current prototype.js is about 130kb, on a high performance site
> this is quite a lot. Does anyone have an idea how I can only use the
> Ajax portion of prototype.js so the .js file gets smaller?

Best best: offload it to Google's CDN using their "Ajax Libraries APIs"
offer [1].

Otherwise, you can just configure your web server to GZip it (~30KB) and
set a long cache expiry to it, that does nicely as well.

[1] http://code.google.com/apis/ajaxlibs/documentation/

--
Christophe Porteneuve aka TDD
t...@tddsworld.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CoolEsh  
View profile  
 More options Jul 22 2008, 7:25 am
From: CoolEsh <cool...@mail.ru>
Date: Tue, 22 Jul 2008 04:25:18 -0700 (PDT)
Local: Tues, Jul 22 2008 7:25 am
Subject: Re: high performance site and prototype
Or you can make compression with one of the known progs, that removes
comments, freespaces etc and get the version about 76 kb.
On 21 июл, 12:27, ACES Direct <i...@acesdirect.nl> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Dashifen Kees  
View profile  
 More options Jul 22 2008, 9:53 am
From: "David Dashifen Kees" <dashi...@gmail.com>
Date: Tue, 22 Jul 2008 08:53:26 -0500
Local: Tues, Jul 22 2008 9:53 am
Subject: Re: [Proto-Scripty] Re: high performance site and prototype

Configuring your web server to gzip it is easier than you'd think.  If
you're interested, here's a link.  IT's for gzipping CSS, but with some
tweaks you can apply it to javascript files, too.  It relies on .htaccess
files, so you'll need the appropriate server environment.

http://www.fiftyfoureleven.com/weblog/web-development/css/the-definit...

 - Dash -

On Mon, Jul 21, 2008 at 5:11 AM, Christophe Porteneuve <t...@tddsworld.com>
wrote:

--
David Dashifen Kees

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jdalton  
View profile  
 More options Jul 22 2008, 6:08 pm
From: jdalton <John.David.Dal...@gmail.com>
Date: Tue, 22 Jul 2008 15:08:27 -0700 (PDT)
Local: Tues, Jul 22 2008 6:08 pm
Subject: Re: high performance site and prototype

I totally agree with gzipping.
Minified and gzipped Prototype is 20.7kb.

Currently YUI Compressor is compatible with Prototype 1.6.0.2 and its
use of the $super variable.
I have also modified a version of Dean Edwards packer 3 to support the
$super variable.

http://protosafe.googlecode.com/files/protopack_v2.19b.zip (package of
pre minified prototype and scriptaculous versions)
http://xnme.exofire.net/2008/05/speed-up-your-website-quick/ (how to
use mod deflate)

Here is an example .htaccess addition:

# References:
# http://www.g-loaded.eu/2008/05/10/use-mod_deflate-to-compress-web-con...
# http://xnme.exofire.net/2008/05/21/speed-up-your-website-quick/
# http://httpd.apache.org/docs/2.0/mod/mod_deflate.html

<IfModule mode_deflate.c>

  AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml
application/x-javascript
  DeflateCompressionLevel 9

  # Netscape 4.x has some problems...
  BrowserMatch ^Mozilla/4 gzip-only-text/html

  # Netscape 4.06-4.08 have some more problems
  BrowserMatch ^Mozilla/4\.0[678] no-gzip

  # MSIE masquerades as Netscape, but it is fine
  # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

  # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
  # the above regex won't work. You can use the following
  # workaround to get the desired effect:
  BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

  # Make sure proxies don't deliver the wrong content
  Header append Vary User-Agent env=!dont-vary

</IfModule>

- JDD


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google