1. #1
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,188
    Vote Rating
    102
    LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light

      0  

    Default Inline CSS and JavaScript?

    Inline CSS and JavaScript?


    This is the page source of my application built with Cmd... It's nice and small.

    If Cmd inlined the *-all.css and all-classes.js files, there would be two fewer HTTP requests... This should be better for performance

    Code:
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Risk</title>
    <link rel="stylesheet" href="resources/Risk-all.css"/>
    <script type="text/javascript" src="all-classes.js"></script>
    </head>
    <body></body>
    </html>

  2. #2
    Sencha - Ext JS Dev Team
    Join Date
    May 2011
    Posts
    149
    Vote Rating
    56
    Phil Guerrant is a jewel in the rough Phil Guerrant is a jewel in the rough Phil Guerrant is a jewel in the rough

      0  

    Default


    Keep in mind, it's not just about the initial page load, but also what happens when the user hits the refresh button. With inline js/css the browser would have to download the entire source every refresh, but external files may be loaded from cache.
    Phil Guerrant
    Ext JS - Development Team

  3. #3
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,188
    Vote Rating
    102
    LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light

      0  

    Default


    Quote Originally Posted by Phil Guerrant View Post
    Keep in mind, it's not just about the initial page load, but also what happens when the user hits the refresh button. With inline js/css the browser would have to download the entire source every refresh, but external files may be loaded from cache.
    Good point about caching! Thx

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar