diff options
| author | ddm <ddm@openerp.com> | 2013-09-25 17:54:34 +0200 |
|---|---|---|
| committer | ddm <ddm@openerp.com> | 2013-09-25 17:54:34 +0200 |
| commit | e7a469f8bc5f4fe8004ebd877da6b8a85dfd0737 (patch) | |
| tree | 107fd6900608d43dea7b406dd174e22e32572cd2 /addons/website_mail/views/website_mail.xml | |
| parent | 71bb1ca0ce316ef62682f27299a652bbc0edec60 (diff) | |
[IMP] speedup page loading by loading CSS in || before scripts
bzr revid: ddm@openerp.com-20130925155434-mg3v6ur9wh4h3nvj
Diffstat (limited to 'addons/website_mail/views/website_mail.xml')
| -rw-r--r-- | addons/website_mail/views/website_mail.xml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/website_mail/views/website_mail.xml b/addons/website_mail/views/website_mail.xml index 7a55352f07b..5cc4383412c 100644 --- a/addons/website_mail/views/website_mail.xml +++ b/addons/website_mail/views/website_mail.xml @@ -12,8 +12,11 @@ </template> <template id="website.layout" inherit_id="website.layout" inherit_option_id="website.layout"> - <xpath expr="//head" position="inside"> + <!-- Load stylesheets before scripts to avoid blocking --> + <xpath expr="//head/link" position="after"> <link rel='stylesheet' href='/website_mail/static/src/css/website_mail.css'/> + </xpath> + <xpath expr="//head" position="inside"> <script type="text/javascript" src="/website_mail/static/src/js/website_mail.js"></script> </xpath> </template> |
