View Full Version : Empty Includes

08-25-2002, 09: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

08-26-2002, 12:12 AM
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.


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

08-26-2002, 01: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.


08-26-2002, 04: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.