SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    ********* Scotland Saltire's Avatar
    Join Date
    Jan 2000
    Location
    Scotland
    Posts
    660
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I have 10 lines of text and in Dreamweaver I change the font to arial, helevetica, sans-serif for every line, will it slow down the page loading as the browser has to render each font face?

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2000
    Location
    Louisville, KY, US
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I understood your question correctly it is no, If you for example take the fonts Arial, Helvetia and sans-sarif the visitors browser look for the Arial font and if the user have that font not installed on his computer it takes the Helvetia font etc..

    Regards


    ------------------
    EMB
    webmaster bluegrass-webresources.com

  3. #3
    ********* Scotland Saltire's Avatar
    Join Date
    Jan 2000
    Location
    Scotland
    Posts
    660
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What I mean is that say that I've got:

    blah text
    blah text 1
    blah text 2

    now, say that I select each of these and set the font to being "Arial, Helvetica, sans-serif". When you look at the HTML code it will say that each of these has face="Arial..." because I've set each of these fonts and this piece of face code will be repeated, will all of these "face" lines have to be interpreted by the browser before it shows the page, and will this slow down the loading time?

  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It will slow download time as much as you added extra bytes to the file downloading.

    If you had <font face="arial, helvetica, sans-serif"> which is 42 characters ten times your adding 420 bytes to the file.

    If the lines are contiguous you can add it once. If your changing the font face on multiple pages you can put it in a linked style sheet give it a class name and refer to that in every line with "class=blah" which is much less than 42 characters.

    As for how fast the page is rendered on the page the code shouldn't have an effect. Installed fonts are saved to the Registry or the Mac's equivalent (forget what it is called) in a database format so finding a font is fast. Its not like the system has to load each file and "ask are you arial?" until it finds the right one.

    ------------------
    Wayne Luke
    Internet Media Provider

  5. #5
    ********* Scotland Saltire's Avatar
    Join Date
    Jan 2000
    Location
    Scotland
    Posts
    660
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Wayne, for your help. Also, thanks for your help with most of my other posts!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •