usless script?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi all,

Looking at browser statistics
Nobody seems to use Netscape 4 or even Netscape at all. I've taken
over management of our website and I have this script on 99% of
pages.. quick read through would lead me to believe that this is
useless code. Can I delete this without any issues?

<script language="JavaScript">
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&
(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!
=document.MM_pgH) location.reload();
// -->

Re: usless script?

On Thu, 22 Jan 2009 05:00:16 -0800 in, cln

Quoted text here. Click to load it

Well, IMO, if you don't know what it's there for, then it's probably OK to get
of it! But bear in mind w3schools stats are stats for w3schools, only you know
what traffic hits your site.

Stephan Bird MChem(Hons) AMRSC
Currently in Macclesfield, Cheshire

Re: usless script?

Stephan Bird wrote:
Quoted text here. Click to load it

I see it more like:
This is a legacy script targeting a long-obsolete browser. If it's on
every page now, there is likely more legacy code in there and this may
be just the tip of the proverbial iceberg.

If the code is being modernized piecemeal, then I'd say go for it, but
if this is the only thing being dropped I wouldn't bother.

For a site that was developed back when NS4 was a force to be reckoned
with, it's often better just to start over from scratch.

Quoted text here. Click to load it



Re: usless script?

Quoted text here. Click to load it

True, I don't base my whole site on their stats, i just take it as a
'what's going on'. clear stuff.

Some files were not modified since 2001 so i figure that things have
'evolved' since.

thanks all.

Site Timeline