...

View Full Version : Empty Includes



zoobie
08-25-2002, 08:16 PM
By necessity, I find myself hiding data in 100 mostly empty includes. I'm using:

function killErrors(){return true;}
window.onerror = killErrors;

so the page renders properly...but notice it's taking a long time to evidently go thru all these includes.

Is there a better and faster way?

I have PHP...

Thanks :p

duniyadnd
08-25-2002, 11:12 PM
Try figuring out what the individual errors are and address them individually (as in, give them exceptions within each file). That should save some time.

Duniyadnd

joh6nn
08-26-2002, 12:04 AM
i'm not exactly sure what you're talking about. can you give a clearer example, maybe an excerpt from the code?

zoobie
08-26-2002, 12:58 AM
Well, I'm not doing anything special...just hiding some code within 100 includes. It's a game.

Most really don't exist:

<script language=javascript scr=jhnlpcm.js></script>
<script language=javascript scr=jznlecm.js></script>
<script language=javascript scr=jhnletm.js></script> etc x 100

and some really do.

But it's taking too long to include all the non-existing includes.

I need a faster/better way.

Thanks

brothercake
08-26-2002, 03:21 AM
That is incredibly inefficient - more so than you mention, because in some builds of mozilla in win98 and 95, non-existent external dependies can make the page never finish loading ...

To answer your question though - it depends on why you're storing data in this way in the first place, and more importantly, what kind of discriminatin you use to test for the existence of the variables.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum