For jQuery specifically, you could also use the Google hosted version:
http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js (or
other version).
See http://code.google.com/apis/ajaxlibs/documentation/#jquery .

On Jul 20, 1:07 am, Bottiger <[email protected]> wrote:
> Is there any reliable way to condense common static files into one
> folder?
>
> For example, Jquery, a 56 kb file, is replicated among every
> application. If your website is comprised of more than 2 apps, your
> users will be forced to download jquery twice.
>
> The only way I have thought of is to use routes to do something like
> this:
>
> global_jquery = '/examples/static/jquery.js'
>
> routes_in = (('/static/jquery', global_jquery),)
>
> routes_out = (
>                           ('/app1/static/jquery.js', global_jquery),
>                           ('/app2/static/jquery.js', global_jquery),
>                           ('/app3/static/jquery.js', global_jquery)
>                         )
>
> is this a good idea?
>
> Plus, is it possible to reload routes.py without restarting web2py?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to