Tutorial 1 - iframe page - CSS question
  • On iframe.html, the code at the top of the page looks like this...




    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>

    <script type="text/javascript" src="../../jquery.gamequery.js"></script>

    <script type="text/javascript" src="mechalchemist.js"></script>

    <style type="text/css">

    html,body{
    margin: 0;
    padding: 0;
    background-color: black;
    }

    </style>


    Can we attach a style-sheet to the page rather than have inline CSS? Is there a performance lag if we do that?

    Thanks!

  • selimselim
    Accepted Answer
    There is no gameQuery-related performance issue there but for small CSS (and script) that are used in one place only you probably want to have them inline to minimize the overhead of requesting for the file.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!