MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
<script> vs <link>
Current time: 11-26-2020, 08:34 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
<script> vs <link>
04-06-2009, 02:30 AM
Post: #1
<script> vs <link>
(thread migrated from sourceforge forum - originally posted 8/16/2008)

Hi Pat,

I've just read through "High Performance Web Sites Essential Knowledge for Front-End Engineers".
A good read but I think I'm 90% there anyway.

In it Steve Souders suggests using <link> and not <style> for external style sheets.
Out of intrigue I ran a short test and found my site loaded quicker with <style> not <link>.

With link:

With style:

Using a link appears to delay the opening of further DNS lok-ups while style does not.
Am I correct in this interpretation?
Does this method therefore undermine the suggested two hostnames maximum as documented?

It seems CDNs should be my next step.
Do you know of any free ones I could try?


Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
<script> vs <link> - pmeenan - 04-06-2009 02:30 AM
RE: <script> vs <link> - pmeenan - 04-06-2009, 02:30 AM
RE: <script> vs <link> - pmeenan - 04-06-2009, 02:31 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)