473,761 Members | 4,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Two minor JavaScript-testing questions

I'm trying to test some simple JavaScript meant to speed up the display
of my Web pages for readers using modems, but I have a fast DSL
connection and I'm having trouble visualizing how effective the code
is. Does anybody know of software that will simulate modem speed over a
DSL connection -- i.e., temporarily slow down the speed of my
connection, or the speed at which the browser uses the connection? (I
author on a Mac but test on a PC -- I'm mostly interested in slowing
down IE6 on Windows since that's what most people use.) I've searched
but could not find such software. (I don't have a real 56K modem that
can be used for this purpose.)

My second question involves actually looking at the list of files that
have loaded into the browser's cache. Windows IE6 seems to be the only
one of my test browsers that lets me do this. Mac IE5 puts all the
cache files into one big file that's opaque to me; Windows Netscape 6
loads them as separate files, but renames the cache files to gibberish
that I can't decipher.

Is there a way to actually see what files are getting cached in these
other browsers? Am I missing something?

Thanks much,
San

--
Lawrence San
Cartoon Stories for Thoughtful People:
<http://www.sanstudio.c om>
email: sa*@sanstudio.c om
Jul 23 '05 #1
2 1670
Lawrence San wrote:
I'm trying to test some simple JavaScript meant to speed up the display
of my Web pages for readers using modems, but I have a fast DSL
connection and I'm having trouble visualizing how effective the code
is. Does anybody know of software that will simulate modem speed over a
DSL connection -- i.e., temporarily slow down the speed of my
connection, or the speed at which the browser uses the connection? (I
author on a Mac but test on a PC -- I'm mostly interested in slowing
down IE6 on Windows since that's what most people use.) I've searched
but could not find such software. (I don't have a real 56K modem that
can be used for this purpose.)

My second question involves actually looking at the list of files that
have loaded into the browser's cache. Windows IE6 seems to be the only
one of my test browsers that lets me do this. Mac IE5 puts all the
cache files into one big file that's opaque to me; Windows Netscape 6
loads them as separate files, but renames the cache files to gibberish
that I can't decipher.

Is there a way to actually see what files are getting cached in these
other browsers? Am I missing something?

Thanks much,
San


What gets cached is a combination of server headers, intervening proxies
and client user agent settings. You can only control the server headers to
ensure that .js files are not configured to send "Expires: ...",
"Cache-control: ... " or "Pragma: no-cache" headers (or if the server is
sending Cache-control: headers, they are correct) <url:
http://www.mnot.net/cache_docs/#CONTROL />. My guess is that your server is
configured correctly, it would take explicit action on the part of the Web
server administrator to change those settings.

You have no control over what any proxies between your server and the
client might do, so I won't bother discussing it (although you *can*
control some proxies to some extent with appropriate Cache-control: server
headers).

That leaves client user agent cache settings, which you also have NO
control over. However, as long as the user has left the user agent
(browser) configured as installed, the browser will be caching any files
you send it.

IE: Tools -> Internet Options -> General tab -> Settings -> Automatically
Netscape 4: Edit -> Preferences -> Advanced -> Cache -> Once per session
Firefox: No internal setting to control caching, but there are Extensions
that can provide this functionality. From my use of this browser, it's
obvious to me it refreshes the local cached copy when it detects the server
copy is out of date.
Mozilla 1.6: Edit -> Preferences -> Advanced -> Cache -> When the page is
out of date
Opera 7.5: Tools -> Preferences -> Network -> History and cache -> Check
documents, Check images, Check other (which is the dopiest way to handle
caching I've ever seen, but whatever)
etc
etc
etc

As you can see, and as I said, all you can control is the server. Ensure it
is configured correctly. After that, caching behaviour will be the combined
result of any proxies the page has to pass through and the client's user
agent cache settings. If the user has their user agent configured
correctly, it will cache, if they don't, it won't.

--
| Grant Wagner <gw*****@agrico reunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 23 '05 #2
Thank you for your comments about servers, server headings, proxies,
and user agent settings. However, my questions were (1) whether anyone
knows of software to slow down a broadband connection, and (2) how to
examine the contents of the rather opaque cache directories of a few
specific browsers (see my original query below).

Anybody know?

Thanks,
San
Lawrence San wrote:
I'm trying to test some simple JavaScript meant to speed up the display
of my Web pages for readers using modems, but I have a fast DSL
connection and I'm having trouble visualizing how effective the code
is. Does anybody know of software that will simulate modem speed over a
DSL connection -- i.e., temporarily slow down the speed of my
connection, or the speed at which the browser uses the connection? (I
author on a Mac but test on a PC -- I'm mostly interested in slowing
down IE6 on Windows since that's what most people use.) I've searched
but could not find such software. (I don't have a real 56K modem that
can be used for this purpose.)

My second question involves actually looking at the list of files that
have loaded into the browser's cache. Windows IE6 seems to be the only
one of my test browsers that lets me do this. Mac IE5 puts all the
cache files into one big file that's opaque to me; Windows Netscape 6
loads them as separate files, but renames the cache files to gibberish
that I can't decipher.

Is there a way to actually see what files are getting cached in these
other browsers? Am I missing something?

Thanks much,
San

Grant Wagner <gw*****@agrico reunited.com> wrote:
What gets cached is a combination of server headers, intervening proxies
and client user agent settings. You can only control the server headers to
ensure that .js files are not configured to send "Expires: ...",
"Cache-control: ... " or "Pragma: no-cache" headers (or if the server is
sending Cache-control: headers, they are correct) <url:
http://www.mnot.net/cache_docs/#CONTROL />. My guess is that your server is
configured correctly, it would take explicit action on the part of the Web
server administrator to change those settings.

You have no control over what any proxies between your server and the
client might do, so I won't bother discussing it (although you *can*
control some proxies to some extent with appropriate Cache-control: server
headers).

That leaves client user agent cache settings, which you also have NO
control over. However, as long as the user has left the user agent
(browser) configured as installed, the browser will be caching any files
you send it.

IE: Tools -> Internet Options -> General tab -> Settings -> Automatically
Netscape 4: Edit -> Preferences -> Advanced -> Cache -> Once per session
Firefox: No internal setting to control caching, but there are Extensions
that can provide this functionality. From my use of this browser, it's
obvious to me it refreshes the local cached copy when it detects the server
copy is out of date.
Mozilla 1.6: Edit -> Preferences -> Advanced -> Cache -> When the page is
out of date
Opera 7.5: Tools -> Preferences -> Network -> History and cache -> Check
documents, Check images, Check other (which is the dopiest way to handle
caching I've ever seen, but whatever)
etc
etc
etc

As you can see, and as I said, all you can control is the server. Ensure it
is configured correctly. After that, caching behaviour will be the combined
result of any proxies the page has to pass through and the client's user
agent cache settings. If the user has their user agent configured
correctly, it will cache, if they don't, it won't.

--
| Grant Wagner <gw*****@agrico reunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*

http://devedge.netscape.com/library/...reference/fram
es.html

* Internet Explorer DOM Reference available at:
*

http://msdn.microsoft.com/workshop/a...reference_entr
y.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html


--
Lawrence San
Cartoon Stories for Thoughtful People:
<http://www.sanstudio.c om>
email: sa*@sanstudio.c om
Jul 23 '05 #3

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

Similar topics

4
4707
by: EKL | last post by:
What do I have to do to guarantee that the objects that my code creates are reclaimed by only minor garbage collection runs? In other words, what do I have to do to only generate garbage for minor gc, and not major gc? Thanks. -ekl
1
3846
by: Alain Tesio | last post by:
Hi, I can't manage to get the major or minor device numbers with os.stat : ~ $ll /dev/xda7 /dev/xda8 brw-rw---- 1 root disk 13, 7 Nov 30 2000 /dev/xda7 brw-rw---- 1 root disk 13, 8 Nov 30 2000 /dev/xda8 ~ $python Python 2.2.2 (#4, Oct 15 2002, 04:21:28) on linux2
6
1860
by: Christian Seberino | last post by:
I am looking at the ELSE home page and trying to figure out if I should invest the time to learn about the ELSE minor mode for Emacs. Is there any programmer out there using ELSE that is getting great benefit from it? What does ELSE minor-mode for Emacs do that is so great for you? Chris
0
1360
by: Bloody Viking | last post by:
I've got an XSLT stylesheet which I've written and maintained for over 2 years now. I've always simply processed it with java org.apache.xalan.xslt.Process, but now I'm trying to speed things up, by compiling the stylesheet once, and processing hundreds of XML docs with it. The output is HTML. This is Java 1.4.1 on a Sparc9. The relevant code: in main():
14
1740
by: steven | last post by:
Hi, I've got more or less the design I wanted (http://www.nenya.be/20041211/), except for 2 details: 1. the menu's left border doesn't cover the full height of the menu if the main div is higher than the menu's. How can I make it run down to the footer? 2. currently the long description wraps and continues aligned with the bullet. Is there a way to indent it so that the "second" is aligned with the
0
924
by: foldface | last post by:
Hi As the subject says. If you run VS with an asp.net solution then your program just runs. If you do a ctrl-f5 to restart the solution then it first breaks in the javascript before continuing. Just an irritation that I would like to know how to turn off. Thanks F
4
2482
by: Michael C# | last post by:
Given a DateTime variable, what's the best way to check "minor" status (i.e., less than age 18 years) based on today's date? I came up with this: Dim minor As Boolean = true 'dtDOB is a DateTime variable set to Date of Birth If (DateTime.Now.Subtract(dteDOB.Value.AddYears(18)).TotalDays >= 0) Then minor = false End If This appears to work, but seems a little obfuscated. I was just wondering
12
1892
by: Joel Byrd | last post by:
I am making an AJAX call when any one of a number of inputs in a form (search criteria) are clicked, checked, changed, etc. When the user clicks, checks, whatever, I am trying to display a "Retrieving results..." text. This should be really simple, but in IE, it does not work. Here's the code that is not executing in IE: And here is the context of that code, which is the AJAX function that is called when a radio button is clicked,...
1
5558
by: theWizard1 | last post by:
Using Asp.NET 2.0. I published my web application to the server using the publish to website feature of asp.net 2.0. In VS.Net 2005 IDE, on solution explorer, at top level just below solution, I just right-clicked, and selected publish. I gave it the target server location (just mapped a drive from my machine to the server), and checked the MS Build Option - Allow this precompiled site to be updateable. Everything is working fine. ...
0
10136
Oralloy
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...
0
9811
tracyyun
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...
0
8814
agi2029
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...
0
6640
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();...
0
5266
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3913
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
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.