CSS placed in App_Themes not placed in <Head> ?

Last post 08-30-2007 2:32 AM by Johnson2007. 5 replies.

Sort Posts:

  • CSS placed in App_Themes not placed in <Head> ?

    08-21-2007, 7:22 AM
    • Member
      8 point Member
    • dahkiam
    • Member since 11-08-2006, 6:47 AM
    • Posts 22

     I downloaded "Yslow" this morning and in the performance analysis i got:
     

    D5. Put CSS at the top3 external stylesheets were found outside the document HEAD.

     

    In my source view:

    <head>
    <title>
    xxx
    </title>
    <link href="App_Themes/Default/StyleSheet.css" type="text/css" rel="stylesheet" />
    </head>
    <body>


    Is it Yslow who is wrong here? If not how can i force my css to be placed in the head?

     

  • Re: CSS placed in App_Themes not placed in <Head> ?

    08-21-2007, 8:43 AM
    • Contributor
      4,775 point Contributor
    • Adam.Kahtava
    • Member since 10-18-2006, 2:14 PM
    • Canada
    • Posts 927

    What is "Yslow"? Is it a down loadable Theme? Could you provide a link?

    Your Source View looks correct with the external style sheet placed within the head tag. Could you provide a source view showing the placement of your webresource.axd?

  • Re: CSS placed in App_Themes not placed in <Head> ?

    08-24-2007, 2:35 AM
    • Member
      8 point Member
    • dahkiam
    • Member since 11-08-2006, 6:47 AM
    • Posts 22

    Sorry should have provided a link, anyway here it is: http://developer.yahoo.com/yslow

     
    As for the webresource.axd yes, they are outside the <head> in source view.

     

  • Re: CSS placed in App_Themes not placed in <Head> ?

    08-27-2007, 8:20 AM
    • Contributor
      4,775 point Contributor
    • Adam.Kahtava
    • Member since 10-18-2006, 2:14 PM
    • Canada
    • Posts 927

    It looks like it could be a bug with YSlow. Some people are experiencing similar problems, take a look at these links:

  • Re: CSS placed in App_Themes not placed in <Head> ?

    08-27-2007, 11:37 AM
    • Member
      181 point Member
    • DKB
    • Member since 12-14-2005, 2:22 PM
    • Cape Cod Massachusetts
    • Posts 199

    While you have the master page open look in the properties pallete and select the stylesheet option and go from there you will need to make the neccessary choices I believe you can handle it form there. The other thing is to remember to refresh the project when ever you make changes to the folder tree using the refresh button at the top of the solution explorer.

     

    DKB

    DKB
  • Re: CSS placed in App_Themes not placed in <Head> ?

    08-30-2007, 2:32 AM
    • Contributor
      2,273 point Contributor
    • Johnson2007
    • Member since 05-17-2007, 3:19 AM
    • Posts 449

     Why not ask for question from Yahoo's expert. http://developer.yahoo.com/yslow/feedback.html

    Johnson
Page 1 of 1 (6 items)