Hello,
Apologies for the somewhat wordy and garbled subject as I couldn't think how
to phrase it and this has hindered my searching for any previous answers.
It could be a really simple question. Anyway...
I have a simple javascript function that opens up a new window and writes
HTML code in it to display an image (I don't just display the image because
of problems with different margins in different browsers). Nothing exotic
there. I call this via 'onClick' on various links. Again nothing unusual
there.
The problem is that if I click on a link before the page is completely
loaded the various browsers I have tried will open the new window and even
write the HTML into it (Opera clearly does), but will wait until all the
images etc on the original page have been completely loaded before
displaying the image in the new window. This is in contrast to what happens
when you click on a normal link as that tends to take priority over the
original page.
Is there anything I can do to make my window jump the queue and be displayed
fully immediately?
G. 2 1856
"Graham J" <in************ ***@orangebucke t.co.uk> writes: Is there anything I can do to make my window jump the queue and be displayed fully immediately?
Probably not.
What happens is what always happens when you open two pages at a time.
The browser only have a certain number of connections open at a time.
Other images that need to be loaded are queued, and will be loaded
when there is a connection available. The original page probably
already queued a bunch of images, so the new page starts out at the
back of the line. There is no way to prioritize the elements.
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
'Faith without judgement merely degrades the spirit divine.'
> > Is there anything I can do to make my window jump the queue and be
displayed fully immediately? Probably not.
That is pretty much what I expected but it was worth a try :)
What happens is what always happens when you open two pages at a time. The browser only have a certain number of connections open at a time. Other images that need to be loaded are queued, and will be loaded when there is a connection available. The original page probably already queued a bunch of images, so the new page starts out at the back of the line. There is no way to prioritize the elements.
That is certainly how I see things happening too.
In my original post I suggested that clicking on a normal link seemed to
jump the queue but having just tried it again I realise I didn't have the
whole story. If the link is to an image file then that will be loaded
straight away, jumping the queue as it were, but if it is to an HTML file it
seems any extra downloads required join the back of the queue (using IE, but
I think it is typical behaviour).
Oh well, on to plan B (well more like J actually...).
G. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: BKM |
last post by:
I've been using the following 2 ways to make sure my WebBrowser is finished
loading a page before continuing with the next code.
do:doevents:loop while WebBrowser.Busy
do:doevents:loop until WebBrowser.ReadyState = STATE_COMPLETE (or something
like that. I don't have the code in front of me)
But, for some reason, occasionally the code continues past the loops even
|
by: giurax |
last post by:
Hi all,
I am new to javascript.
I have a window that on the 'onUnload' event opens a new window, the
question is: have I any chance to know in the new window what page is
the opener loading? (in the end I need to know the url of the page
which loading triggered the onUnload event)
thanks.
|
by: amith |
last post by:
Hi,
I have a javascript, calendar.js which i use to enable my client to
select the date. This calendar pops up on the click of a gif image.
But the problem is that this poped up window is not modal in nature(i
do not want the user to go the parent page unless he selects some date
in the calendar popup).
In the javascript calendar.js he has used window.open() function to
pop up the window. i just want to know whether we have any...
|
by: Peter Diedrich |
last post by:
The site design is pretty simple:
============================================
| Head |
============================================
| | | |
| | | |
| left | center | right |
| | | |
| | | |
|
by: Oleg |
last post by:
I have a web form let's say 'YYZ.aspx'.
It has an iframe in it.
When it loads it shows progress bar in IE this way: loading for page then
again loading for page in iframe.
This part is fine.
Problem is when I put page 'YYZ.aspx' in iframe of another page, let's say
'Home.aspx'.
In short: (page (page in iframe(page in iframe) ) )
Progress bar shows ones (fast), then second time(kind of fast) and then
third time. And this time it never...
| |
by: Dr J R Stockton |
last post by:
I want page <URL:http://www.merlyn.demon.co.uk/js-quick.htmto open, in
IE6, IE7, Firefox 2, and wherever else practicable, with the control
labelled F.X0 fully visible at the top of the window and the control
F.Result (which is just under the textarea) fully visible at the bottom
of the window.
What's the right, or best, way to do that? It's right in IE6 at
present, and near enough so in FF2 if there's only a single tab. But
the "tab...
|
by: =?Utf-8?B?R3JlZyBN?= |
last post by:
Hello,
I'm running an asp.net, intranet web application using .net framework 1.1 on
IIS5.1 / 6.0. Through the web application, I would like to press a button on
the web page, have another window (not web-based or part of current
application) brought to the front and focused (findwindow api) and have the
button scrape the contents of the focused window so the contents can be
parsed and entered into the web application.
Ideally, I would...
|
by: Mark Anderson |
last post by:
Hi, I have this in an external JS library:
/////////////////////////
function addMyEvent(){
var obj;
if(document.attachEvent) {
obj = document.getElementsByTagName('img');
for (i=0;i<obj.length;i++) {
obj.attachEvent('ondrag', noDrag);
}
|
by: cssExp |
last post by:
hello,
Rather than going on a wild explanation on what's the the problem, it'll be much quicker and easier if i let you look at it yourself, so I'll post my page source (actual contents taken out, of course).
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-us" />
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |