Re: [php-49] Absolute vs Relative Paths

From: Eric H.
Sent on: Monday, November 5, 2012 2:45 PM
Tim, that is half my job... don't know what I would do if I was not hotlinking every image I could get my hands on. ;)

I did not realize that absolute paths would require a new apache thread, but when I stop to think about that, it does make sense. So by using absolute paths on everything, images/page links/js includes, you are actually working your apache harder. Did I understand that correctly?

-- Eric

On Mon, Nov 5, 2012 at 2:37 PM, Tim Piele <[address removed]> wrote:
Quit hotlinking google images and that will fix it.




On Mon, Nov 5, 2012 at 2:35 PM, Garth Henson <[address removed]> wrote:
It is possible that this will make a difference, but it's generally negligible. Keep in mind that absolute links require an additional Apache process to resolve the domain name, etc. Relative links are handled in the same Apache process. So, if you have a TON of absolute URLs on your page, this could add up to a noticeable difference in latency to your page, but not to individual load times once the request has been made.

-GH


On Mon, Nov 5, 2012 at 2:20 PM, Eric Harris <[address removed]> wrote:
Hey Guys,

I am working on dealing with some slow loading images. I was suddenly struck with the thought of "Does absolute or relative paths, make a difference in load times?"

I did do some looking around, there are plenty of articles explaining the differences and such, but I could not find anything talking about load times, higher level pros/cons, or performance issues.

Anyone have an opinion on this topic?

Thanks,

-- Eric




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Eric Harris ([address removed]) from The Seattle PHP Meetup Group.
To learn more about Eric Harris, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Garth Henson ([address removed]) from The Seattle PHP Meetup Group.
To learn more about Garth Henson, visit his/her member profile





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Tim Piele ([address removed]) from The Seattle PHP Meetup Group.
To learn more about Tim Piele, visit his/her member profile

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy