you can have the layout.html including whatever order you need.
The latest scaffolding app has web2py_ajax.hml that inserts jquery.js and 
web2py.js at the start of the response.files list

https://github.com/web2py/web2py/blob/master/applications/welcome/views/web2py_ajax.html#L9

that's why they are "at the top", no matter what you order response.files.

modernizer.js is not in response.files, it gets included in the head 
separately (and before all the others) the way it's supposed to be.

PS: changing the order of css and js in response.files will not improve 
page loading times in the scaffolding app, they're all inserted in the 
<head> tag anyway. 

On Friday, April 26, 2013 10:10:15 AM UTC+2, Annet wrote:
>
> To improve the performance on my application I took someones advice an 
> reversed the order of .js and .css in my layout
>
> <!-- include stylesheets -->
>   {{  
>   
> response.files.append(URL('static','nexusStatic/jQueryUI/css/jquery-ui-1.10.0.custom.css'))
>   response.files.append(URL('static','nexusStatic/css/bootstrap.min.css'))
>   
> response.files.append(URL('static','nexusStatic/css/bootstrap-responsive.min.css'))
>   response.files.append(URL('static','nexusStatic/css/nexus.css'))
>   if request.controller=='vcard':
>     response.files.append(URL('static','nexusStatic/css/vcard.css'))
>   pass
>   }}
>   
>   <!-- All JavaScript at the bottom, except for Modernizr which enables
>        HTML5 elements & feature detects -->
>   <script src="{{=URL('static','js/modernizr.custom.js')}}"></script>
>
>     {{include 'scaffolding/web2py_ajax.html'}}
>
> However, did doesn't have any effect on the order in which they appear in 
> a rendered page, why not?
>
> modernizr.js and web2py_ajax (jquery.js and web2py.js) come before the 
> links to .css files in the head
> section. Is there a way to change this?
>
> Regards,
>
> Annet
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to