Hi All,
I need some help resolving a pretty tricky problem. I have a javascript
application running from a CD. The script preloads between 500 to 1000
jpegs (about 40K each) to the IE. The IE immediatly decompresses the
jpegs, essentially using up too much memory.
I have a few limitations working against me:
A) Since the jpegs reside on a CD, it is crucial that I preload them to
the IE in order to not incur the seek time that is needed when the user
wishes to view the jpeg.
B) This is not a slide show, the user has to be able to view the
different jpegs when he wants to and will not wait the full second that
will be needed to load them. It is only possible to wait when the
script loads.
Is anyone familiar with a way to preload the images without the IE
decompressing them immediatly? By the way Netscape seems not to have
problems like that... 3 1607
giladg22 wrote: Hi All,
I need some help resolving a pretty tricky problem. I have a javascript application running from a CD. The script preloads between 500 to 1000 jpegs (about 40K each) to the IE. The IE immediatly decompresses the jpegs, essentially using up too much memory.
I have a few limitations working against me: A) Since the jpegs reside on a CD, it is crucial that I preload them to the IE in order to not incur the seek time that is needed when the user wishes to view the jpeg. B) This is not a slide show, the user has to be able to view the different jpegs when he wants to and will not wait the full second that will be needed to load them. It is only possible to wait when the script loads.
Is anyone familiar with a way to preload the images without the IE decompressing them immediatly? By the way Netscape seems not to have problems like that...
Hi,
Long ago when I made CD's on websites I had excactly the same problem.
Disclaimer: I can describe you how I THINK how I solved it then, but I am
unsure if that still works. I am even unsure if my memory serves me well,
but you can always try I guess. Your question was out here for 1 day now,
and nobody replied, so maybe try my simple sulotion.
The trick was very simple: Let the browser cache all the images first before
using them.
So what I did was this:
1) Create a welcomescreen, and a hidden frame.
2) In the hidden screen I placed ALL images that were on the cd.
3) (!) The headers in the hidden frames said that the document would expire
in a few years from now (2010 or something).
IE DID the caching, even when you re-used the CD later because it cached the
images from CD to HD.
Of course, the client must have cache enabled and it must be sufficient big.
Hope that helps you out.
Regard,
Erwin Moller
Thanks Erwin. I'll try that and post a reply when I'm done.
Gilad Grushka
giladg22 wrote: I need some help resolving a pretty tricky problem. I have a javascript application running from a CD. The script preloads between 500 to 1000 jpegs (about 40K each) to the IE. The IE immediatly decompresses the jpegs, essentially using up too much memory.
YMMD.
I have a few limitations working against me: A) Since the jpegs reside on a CD, it is crucial that I preload them to the IE in order to not incur the seek time that is needed when the user wishes to view the jpeg.
No, it is not. For "preloading " will not save you any time.
B) This is not a slide show, the user has to be able to view the different jpegs when he wants to and will not wait the full second that will be needed to load them. It is only possible to wait when the script loads.
And they will dislike it even more when they have to wait n*1 seconds (n
being the number of images "preloaded" ) before they can even use the CD,
while the local cache is filled with images they probably never look at,
causing other data they require more often to be removed. Erwin's
certainly was worst advice possible.
Besides, if you have images that require a second to display on a current
machine in the first place, you have a greater problem. Use small
thumbnails. And *please* stop even thinking about messing with the
environment you have been allowed to use (not to misuse).
Is anyone familiar with a way to preload the images without the IE decompressing them immediatly?
No. You are doing this the wrong way, trying to cure the symptoms.
By the way Netscape seems not to have problems like that...
Newer Netscapes (which is why it is important to tell at least the
version) do not have many flaws IEs have, as they are based on Gecko.
Please quote what you are replying to next time:
<URL:http://jibbering.com/faq/faq_notes/pots1.html>
<URL:http://www.safalra.com/special/googlegroupsrep ly/>
PointedEars
--
In the First World War, 13 million people were killed. In the Second
World War, 40 million people were killed. I think that if a third war
takes place, nothing is going to be left on the face of earth.
-- Shakira, 2003-02-05 @ MTV.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steve Holden |
last post by:
If nobody has a quick answer I'll go to the PIL list, but I'm having
problems with PIL JPEG support on Windows, and figured someone on c.l.py
might have solved this problem.
I built the Cygwin PIL from source, and that works a treat.
Unfortunately the Windows version (1.1.4 and 1.1.5b1) loaded using
binary installers is giving
File "/c/steve/website/hpgraphics.py", line 23, in ?
File "C:\Python23\Lib\site-packages\PIL\ImageFont.py",...
|
by: Fabian |
last post by:
var preload1 = new Image(); preload1.src = "/pic/yay.gif";
var preload2 = new Image(); preload2.src = "/pic/nay.gif";
The above is meant to preload image files, yes? Problem is, it doesnt
seem to be doing so in practice. Any idea where Im going wrong? Could it
be that things work differnetly when in an attached .js file?
--
--
|
by: frankenberry |
last post by:
I have multi-page tiff files. I need to extract individual frames from the
multi-page tiffs and save them as single-page tiffs. 95% of the time I
receive multi-page tiffs containing 1 or more black and white CCITT4
compressed files (frames) inside the tiff. Every now and then I receive a
mixture of black and white CCITT4 and JPEG compressed files, and sometimes
just multi-page tiffs with JPEG only. The code runs great when dealing with
the...
|
by: Dennis Allen |
last post by:
Hi. I have one image that has to show up in a html page several times.
To save time, I'd like to preload this image. As an example:
if (document.images) {
tester = new Image()
tester.onload=function() {cImg('good')}
tester.onerror=function() {cImg('bad')}
tester.src="image.jpg"
}
function cImg(typ) {
|
by: David Lauberts |
last post by:
Hi
Wonder if someone has some words of wisdom.
I have a access 2002 form that contains 2 graph objects that overlay each
other and would like to export them as a JPEG to use in a presentation. I
can do this individually for each graph but this does not help me as I need
both on the same JPEG. I thought I would try an export the form that
contains both but I am having trouble. (My VBA is self taught and a little
knowledge is...
| |
by: Jack Wu |
last post by:
Hi
I've spent a good majority of my day trying to figure out how to have
PIL 1.1.5 working on my OSX 10.3.9_PPC machine. I'm still stuck and I
have not gotten anywhere. Could somebody please help me...
I've scoured all the documentation, google, and mailing lists to no
avail. I believe the problem may lay in a jpeglib problem with OSX
10.3.9, or a python paths problem.
|
by: Joe Cool |
last post by:
I am attempting to add a function to an application I am working on to
modify the JPEG Comment in a Jpeg image file.
I can retrieve the JPEG Comment with no problem. The problem is
modifying it.
I have the contents of a Jpeg loaded into an Image object, _Image,
using the Image.FromFile method.
I convert the Text property of a TextBox to a byte array with code
|
by: Inny |
last post by:
Hello again, Im using the code below in a child page (popup), the images
are called from the parent page. When the changer is running, the child page goes white between images. I realise this is happening because the Images are not cached (yet) on the users browser.
I tried preloading images with the 2nd code below in the childpage head
and in the parent page head and both. no joy, dosent seem to actually 'preload' the pics. (i also gave...
|
by: Keith Hughitt |
last post by:
Hi all,
I am having trouble preloading images in a javascript application, and
was wondering if anyone had any suggestions.
Basically I have a bunch of images stored in a database as BLOBs. At
any given point in time a subset of those images is displayed on-
screen. At certains times I want to swap out those on screen with new
ones from the database, and do some as seamlessly as possible.
So what I've tried to do is first create Image...
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |