473,382 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Does Size (URL Length) Matter?

Would there be a noticeable difference in load time between these two?...

http://www.foo.com/barimage.jpg
or
http://www.foo.com/images/barimage.jpg

--
SamMan
Rip it to reply

Jul 20 '05 #1
6 2110
SamMan wrote:
Would there be a noticeable difference in load time between these two?...

http://www.foo.com/barimage.jpg
or
http://www.foo.com/images/barimage.jpg


No. Unless the answer is yes. There's really not enough information
there to answer the question.

Certainly, from an HTML standpoint, it hardly matters to either the
web server or the browser.

-- Joel.

Jul 20 '05 #2
SamMan wrote:
Would there be a noticeable difference in load time between these
two?...

http://www.foo.com/barimage.jpg
or
http://www.foo.com/images/barimage.jpg


No, there wouldn't be (if otherwise everything except the path as shown
above is the same).
Jul 20 '05 #3
there would be if the images directory didnt exist??

www.this.com could point directly to www.foo.com/images/barimage.jpg and
www.that.com could point straight to www.foo.com/barnimage.jpg. and they
both are probably ACTUALLY sitting on something like
webhosting.somewebhost.com/hoster/this/that/otherthing/~samman/default/ or
something like that.

so if your question is "does another level of subdirectory matter" the
answer is no.

randy

"SamMan" <sa*@psfdevrip-it.com> wrote in message
news:XC***************@twister.rdc-kc.rr.com...
Would there be a noticeable difference in load time between these two?...

http://www.foo.com/barimage.jpg
or
http://www.foo.com/images/barimage.jpg

--
SamMan
Rip it to reply

Jul 20 '05 #4
Thanks everybody... The reason I asked is a coworker is complaining about
putting images in their own dir, and if so, the "path would be too long". As
in my example, they would be only one level down from the HTML doc. I can
guess their reasoning would be "it will take longer for a page to load"....
and this is coming from a person that creates 600k to 800k+ pages full of
images....

--
SamMan
Rip it to reply
Jul 20 '05 #5
"SamMan" <sa*@psfdevrip-it.com> wrote in
news:O%*****************@twister.rdc-kc.rr.com:
Thanks everybody... The reason I asked is a coworker is complaining
about putting images in their own dir, and if so, the "path would be
too long". As in my example, they would be only one level down from
the HTML doc. I can guess their reasoning would be "it will take
longer for a page to load".... and this is coming from a person that
creates 600k to 800k+ pages full of images....


The phrase "superstitious learning" comes to mind. The time taken for a
browser to transmit an HTTP request after establishing a connection is an
absolutely negligible amount of a page's load time (don't confuse this with
request latency, which can be non-trivial), and in any case isn't
proportional to the length of the URL in the request due to the packet-
based nature of TCP/IP.

In the programming community, it's quite well known that even the very best
programmers' gut feelings about what is or isn't "efficient" are usually
wildly off. Therefore, the very best programmers actually *measure* things
when efficiency is a consideration rather than trusting their hunches.
Similar considerations apply here.

IMNSHO, the most important consideration in setting up a URL scheme is that
you create something stable so URLs of existing pages don't have to be
changed in the future, breaking existing links.

Jul 20 '05 #6
In article <XC***************@twister.rdc-kc.rr.com> in
comp.infosystems.www.authoring.html, SamMan <sa*@psfdevrip-it.com>
wrote:
Would there be a noticeable difference in load time between these two?...

http://www.foo.com/barimage.jpg
or
http://www.foo.com/images/barimage.jpg


Unless something _very_ strange is going on in the server, the time
difference would be far less than what any human could observe.
Depending on what else is going on, it might even be zero.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: BigDadyWeaver | last post by:
I am using the following code in asp to define a unique and unpredictable record ID in Access. <% 'GENERATE UNIQUE ID Function genguid() Dim Guid guid =...
4
by: rick | last post by:
The following basic script works fine in firefox by not in IE. Can anyone spot the problem? In IE I can only delete the first line but not the lines created by javascript. Also, look at the HTML...
4
by: Schraalhans Keukenmeester | last post by:
I have no clue why below code (found it somewhere and altered it a wee bit to my needs) will run without problem in both IE and Mozilla FireFox 1.0 but in the latter it takes up close to 100% cpu....
15
by: greenflame | last post by:
First of all I only have IE for testing. Ok. I have a script that is supposed to show, not evaluate, the indefinite integral of something. When I run the script it just craches IE. I have tried...
34
by: Sunner Sun | last post by:
Hi! I have looked through the FAQ but found nothing about it. :-) It seems that this kind of macro is platform dependent, doesn't it? Thank you. Sunner Sun
7
by: arkobose | last post by:
hey everyone! i have this little problem. consider the following declaration: char *array = {"wilson", "string of any size", "etc", "input"}; this is a common data structure used to store...
38
by: ssg31415926 | last post by:
I need to compare two string arrays defined as string such that the two arrays are equal if the contents of the two are the same, where order doesn't matter and every element must be unique. ...
51
by: Tony Sinclair | last post by:
I'm just learning C#. I'm writing a program (using Visual C# 2005 on WinXP) to combine several files into one (HKSplit is a popular freeware program that does this, but it requires all input and...
4
by: rn5a | last post by:
Consider the following code: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) Dim dInfo As DirectoryInfo dInfo = New DirectoryInfo(Server.MapPath("/Folder1"))...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.