SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Path question

  1. #1
    SitePoint Addict Mainer82's Avatar
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    249
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Path question

    I'm not sure how to title this thread, so let me explain it here:

    Is it better when in a CSS file and HTML file to link to the full path of an image? Such as http://www.sitepoint.com/images/img.png or is it better to do this: ../images/img.png? Or does it not matter? I'm looking for less HTTP access requests.

    Thanks in advance.
    Get to know the man behind the screen

  2. #2
    Resident curmudgeon bronze trophy gary.turner's Avatar
    Join Date
    Jan 2009
    Location
    Dallas
    Posts
    990
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To my knowledge, it makes no difference. There will be a GET request for either one, because the browser will convert the relative address to the full canonical address anyway.

    cheers,

    gary
    Anyone can build a usable website. It takes a graphic
    designer to make it slow, confusing, and painful to use.

    Simple minded html & css demos and tutorials


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
  •