you most certainly have somewhere 
response.optimize_js = 'inline'
response.optimize_css = 'inline'

in your models....

http://web2py.com/books/default/chapter/29/04?search=minify

On Monday, April 22, 2013 4:34:46 PM UTC+2, Loïc wrote:
>
> Hello All,
>
> *Welcome *app, in "*layout.html*" line 41 :  
>   {{  
>   response.files.append(URL('static','css/web2py.css'))
>   response.files.append(URL('static','css/bootstrap.min.css'))
>   response.files.append(URL('static','css/bootstrap-responsive.min.css'))
>   response.files.append(URL('static','css/web2py_bootstrap.css'))
>   }}
>
>   {{include 'web2py_ajax.html'}}
>
> When I show the source code of the page in my browser, the above lines are 
> represented with :
> <script src="/welcome/static/js/jquery.js" type="text/javascript"
> ></script>
> <link href="/welcome/static/css/calendar.css" rel="stylesheet" type=
> "text/css" />
> <script src="/welcome/static/js/calendar.js" type="text/javascript"
> ></script>
> <script src="/welcome/static/js/web2py.js" type="text/javascript"
> ></script>
> <link href="/welcome/static/css/web2py.css" rel="stylesheet" type=
> "text/css" />
> <link href="/welcome/static/css/bootstrap.min.css" rel="stylesheet" type=
> "text/css" />
> <link href="/welcome/static/css/bootstrap-responsive.min.css" rel=
> "stylesheet" type="text/css" />
> <link href="/welcome/static/css/web2py_bootstrap.css" rel="stylesheet" 
> type="text/css" />
>
>
> In my app, I have almost the same content in "*layout.html*":
>   
> {{  
>   response.files.append(URL('static','css/web2py.css'))
>   response.files.append(URL('static','css/bootstrap.min.css'))
>   response.files.append(URL('static','css/bootstrap-responsive.min.css'))
>   response.files.append(URL('static','css/web2py_bootstrap.css'))
>   response.files.append(URL('static','css/x_application.css'))
>   }}
>
>   {{include 'web2py_ajax.html'}}
>
> But when I show the source code of the page, I see :
> <style type="text/css">
> .calendar{z-index:99;position:relative;display:none;background:#fff;border:2px
>  
> solid #000;font-size:11px;color:#000;cur
> (This is just an example, the whole content is 46 lines but more than 
> 270000 char long...)
> All the css and js rules are included in my page
>
>
> I have the same web2py_ajax.html than the Welcome app, and my layout.html 
> is almost the same...
> Any idea of what happens?
>
> Thank you
>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to