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.