Specify loading order of JPGs?

  • Thread starter Chris Tomlinson
  • Start date
D

dorayme

mbstevens said:
<Chuckle>
What would Bud White do?
:)

If it was Officer White asking the question instead of OP, he
would be told very specifically that there is little that can be
offered about load order and instead he should go ask Danny De
Vitto "on the qt, mind you..."
 
M

mbstevens

Say what you will about Jakob Nielsen (and I know that many designers
pour scorn on his own hair-shirt web page design), but at least he has
the sense to produce actual working designs and try them out on
prospective users, watching them to see how usable the designs are,
rather than merely asking them "in a vacuum" whether they thought it
might be "a good idea".

Indeed. Have you seen his new stuff on eye tracking:
http://blogs.zdnet.com/BTL/?p=2776
 
C

Chris Tomlinson

Beauregard T. Shagnasty said:
Chris Tomlinson wrote:
I can't find any <noscript> code in your pages.

<!-- CQ Counter code start --><script type="text/javascript"
language="javascript"><!--
_d=document; _n=navigator; _t=new Date(); function t() { _d.write(
"<img src=\"http://uk.2.cqcounter.com/cgi-bin/c?_id=superhi&_z=1&_r="+
_r+"&_c="+_c+"&_j="+_j+"&_t="+(_t.getTimezoneOffset())+"&_k="+_k+
"&_l="+escape(_d.referrer)+"\" width=70 height=15 "+
"border=0>");} _c="0"; _r="0"; _j="U"; _k="U"; _d.cookie="_c=y";
_d.cookie.length>0?_k="Y":_k="N";//--></script>
<script type="text/javascript" language="javascript1.2"><!--
_n.javaEnabled()?_j="Y":_j="N";_b=screen; _r=_b.width;
_n.appName!="Netscape"?_c=_b.colorDepth : _c=_b.pixelDepth;//--></script>
<a title="Free Counter" href="http://cqcounter.com/?_id=superhi&_lo=uk2"
target="_blank"><script type="text/javascript" language="javascript"><!--

v
t(); //--></script></a><noscript><img width="70" height="15" border="0"
^

alt="Counter"
src="http://uk.2.cqcounter.com/cgi-bin/c?_id=superhi&_z=1"><br> <a
title="Web Counter" href="http://cqcounter.com/">Hit
Counter said:
"Java Script (99.87%)"
I wonder what triggered the 0.13%?
Exactly.

Please explain how you track (what code) if JavaScript is .. disabled. I
am truly interested in how you do this. I've been searching for a way -
any way - to tell if JS is disabled, without using JS itself. Can't find
a way.

<noscript>
--
Thanks,
Me

Try Google Quik-e-searchT at www.Superhighstreet.com/home
....Finds anything or they buy it for you!
 
B

Beauregard T. Shagnasty

Chris said:
v
t(); //--></script></a><noscript><img width="70" height="15" border="0"

alt="Counter"
src="http://uk.2.cqcounter.com/cgi-bin/c?_id=superhi&_z=1"><br> <a
title="Web Counter" href="http://cqcounter.com/">Hit
Counter</a></noscript><!-- CQ Counter code end -->

That was not there yesterday. I searched your source for the word
"noscript" and it was not found.

Still wondering.
<noscript>

So now you display the little CQ image. Great. You know someone visited.
You (they?) still cannot tell if I have JavaScript enabled or not.
Displaying an image, even when pulled from the counter's server, can do
nothing more than make a note that the image was served to a certain IP
address.

Prove otherwise.
 
M

mbstevens

That was not there yesterday. I searched your source for the word
"noscript" and it was not found.

;-)
Maybe they generate them with JavaScript! Would that
be out of character?
;-)
 
B

Beauregard T. Shagnasty

mbstevens said:
;-)
Maybe they generate them with JavaScript! Would that
be out of character?
;-)

Probably not. <g>

I think I will add "uk.2.cqcounter.com" to my HOSTS file.
Yup. Gone. No more stats from me, using any of my browsers.
 
C

Chris Tomlinson

So now you display the little CQ image. Great. You know someone visited.
You (they?) still cannot tell if I have JavaScript enabled or not.
Displaying an image, even when pulled from the counter's server, can do
nothing more than make a note that the image was served to a certain IP
address.

If they have JS enabled, the counter logs their hit via its JS code. If
they have JS disabled, it logs the hit via the <noscript> section which
'hits' CQ's servers in a different place. Both are recorded differently by
CQ. It seems quite logical to us.
 
J

Jim Higson

Chris said:
Hi, is there any way to specify the sequence in which images load on a web
page?

More specifically, here is what we need to achieve:

Image1 starts loading first and the browser does not continue through the
HTML until Image1 has loaded COMPLETELY. When Image1 is done, Image2
BEGINS
loading. When Image2 is 100% done, only then does Image 3 begin... and so
on...

Anyone able to offer a way to do this? Some sort of browser "Pause"
command is the ideal solution, which would pause the loading of HTML until
the current command has completed, and THEN move on to the next 'chunk' of
HTML.

A couple of ideas:

* using data URLs would do exactly this in almost everything except IE -
because the images are included in the HTML file, they would always load in
order. Be warned that this makes the HTML very large though and IE7
probably also won't support data URLs. Another problem is if you include an
image from two HTML files it has to be loaded twice.

* Restrict number of http connections per client to image resources at the
server end so each person can only get one image at once, but can retrieve
several of any other kind of resource (HTML, CSS etc). You'd just need a
little script that does a few of the things the webserver usually does. Not
sure how you would distinguish people though - doing this by IP (at least
until IPv6) would be bad for users behind a NAT, but maybe there is some
other way.
 
C

Chris Tomlinson

* Restrict number of http connections per client to image resources at the
server end so each person can only get one image at once, but can retrieve
several of any other kind of resource (HTML, CSS etc). You'd just need a
little script that does a few of the things the webserver usually does.
Not
sure how you would distinguish people though - doing this by IP (at least
until IPv6) would be bad for users behind a NAT, but maybe there is some
other way.

Hi Jim, that's an interesting little idea, thanks. I wonder if anyone can
expand on it.
--
Thanks,
Me

Try Google Quik-e-searchT at www.Superhighstreet.com/home
....Finds anything or they buy it for you!
 
J

Jim Higson

Chris said:
Hi Jim, that's an interesting little idea, thanks. I wonder if anyone can
expand on it.

All you do is hold back with sending the http responses until the other
image responses by the same client have completed. If you can't positively
identify the client (say, with cookies), don't hold back at all for safety
and to keep search engines happy. You'd also have to look out to make sure
you don't time out the requests.

I don't think it needs too much more explanation than that, I bet it could
be done in 50 lines of PHP (or about 4 lines of near-unreadable Perl). If
your developers don't fancy it I could write the code for you, but not for
free.
 
C

Chris Tomlinson

I don't think it needs too much more explanation than that, I bet it could
be done in 50 lines of PHP (or about 4 lines of near-unreadable Perl). If
your developers don't fancy it I could write the code for you, but not for
free.

Many thanks Jim, may well get back to you if we decide to go this way.
--
Thanks,
Me

Try Google Quik-e-searchT at www.Superhighstreet.com/home
....Finds anything or they buy it for you!
 
C

Chris Tomlinson

All you do is hold back with sending the http responses until the other
image responses by the same client have completed. If you can't positively
identify the client (say, with cookies), don't hold back at all for safety
and to keep search engines happy. You'd also have to look out to make sure
you don't time out the requests.

I don't think it needs too much more explanation than that, I bet it could
be done in 50 lines of PHP (or about 4 lines of near-unreadable Perl). If
your developers don't fancy it I could write the code for you, but not for
free.

Hi Jim, just coming back to you on this, how 'safe' do you think it would
be -- i.e. can we make sure it works for all users, aside from those who
can't be identified and go to fallback mode?

Also, can it be applied only to certain pages or would it have to affect the
entire site? Ideally we'd like it just on the streetscape pages.

--
Thanks,
Me

Try Google Quik-e-searchT at www.Superhighstreet.com/home
....Finds anything or they buy it for you!
 
J

Jim Higson

Hi. Didn't see this post for a while...
Hi Jim, just coming back to you on this, how 'safe' do you think it would
be -- i.e. can we make sure it works for all users, aside from those who
can't be identified and go to fallback mode?

I can't think of any reason why a browser would care if the http response
isn't sent straight away after the request. Afterall, most dynamic HTML
pages aren't made in zero seconds.

The only certain answer is you'd have to try it out, but there is no reason
in principle it wouldn't be safe.
Also, can it be applied only to certain pages or would it have to affect
the
entire site?
Ideally we'd like it just on the streetscape pages.

Sure, it can work however it is coded to work. You could check the REFERER
header to see what page the user is requesting the image from. Browsers
aren't required to send this header, but pretty much all do and you could
just fallback when it isn't there. Alternatively, you could put a param in
the image URL indicating which page the image being asked for is on. There
are plenty of ways it could be done.
 
C

Chris Tomlinson

If anyone on this group would like to quote us for doing this little job,
which may lead to bigger ones in the future, please feel free.
--
Thanks,
Me

Try Google Quik-e-searchT at www.Superhighstreet.com/home
....Finds anything or they buy it for you!
 
J

Jim Higson

Chris said:
If anyone on this group would like to quote us for doing this little job,
which may lead to bigger ones in the future, please feel free.

A short script doesn't not always mean a little job!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top