[web2py] Re: Minor optimize: skip superfish when possible

2011-12-28 Thread Ray (a.k.a. Iceberg)
Hi Massimo, I just noticed that my second patch is derived from an old revision of web2py skeleton app. It might not be directly patched the latest trunk. Anyway, this is what it tries to solve, and you can digest it and do it again in the latest trunk. 1. Wrap all those "{{=MENU(...)}} ... jQue

[web2py] Re: Minor optimize: skip superfish when possible

2011-12-26 Thread Ray (a.k.a. Iceberg)
My fault. There should be one more modification. diff -r 04673c0ce6ab views/layout.html --- a/views/layout.html Tue Dec 27 01:29:01 2011 +0800 +++ b/views/layout.html Tue Dec 27 01:29:17 2011 +0800 @@ -39,8 +39,10 @@ {{#-- require CSS and JS files for this page (read info in base.css) -

[web2py] Re: Minor optimize: skip superfish when possible

2011-12-26 Thread Massimo Di Pierro
good idea. In trunk! On Dec 26, 9:32 am, "Ray (a.k.a. Iceberg)" wrote: > Hey folks, > > I just use this little trick in my app, to reduce two unnecessary http > requests when menus are not needed. > > I think the optimization is reasonable. And people can always manually > re-enable superfish by