Loading ...
Sorry, an error occurred while loading the content.
 

Re: [ydn-javascript] Order to include files

Expand Messages
  • Adam Moore
    ... But if you are asking if the order you include the individual YUI files matters, the answer is yes (e.g., yahoo-min.js must be included before
    Message 1 of 4 , Dec 21, 2007
      On Fri, Dec 21, 2007 at 07:30:04PM +0100, Satyam wrote:
      > If you mean whether the js or the css files first, for perfomance reasons
      > the best is to have the CSS files in the header before anything is rendered
      > first the styles, then the HTML and finally the scripts.

      But if you are asking if the order you include the individual YUI files
      matters, the answer is yes (e.g., yahoo-min.js must be included before
      event-min.js). The documentation and examples for each component shows
      the proper order. Alternatively, use the YUILoader utility, which will
      insert the files in the correct order for you.

      -Adam

      > ----- Original Message -----
      > From: "mathias4711" <matt@...>
      > To: <ydn-javascript@yahoogroups.com>
      > Sent: Friday, December 21, 2007 6:03 PM
      > Subject: [ydn-javascript] Order to include files
      >
      >
      > > Hi!
      > >
      > > I would like to know, if it is necessary to have a special order of
      > > including the library css and js files?
    Your message has been successfully submitted and would be delivered to recipients shortly.