Webpage and browser-hanging issues..

SineCosine

I'm still looking for my Tangent
Reaction score
77
There's this webpage that I've been working on during my spare time..
(Don't comment on the ugly code if you ever see it)

It works fine with my local copy..
And works fine when I send my friends a copy of it.

But when I uploaded it to the net to test some things out..
The webpage would hang my browser all the time.

It's 3.03am, so my friends haven't tried it..
But I'd like to know if anyone else is experiencing the 'hanging' issues, too =/

I don't get what could be causing it.

Temporary site: http://eztagging.megabyet.net/AHS/AHS_Blog.html
The site loaded up quickly for me, but hangs as soon as I try to press a key.
(The current method of navigation)
 

SineCosine

I'm still looking for my Tangent
Reaction score
77
But does pressing [Z, C, S, Q, E] or Numpad [1, 3, 5, 7, 9] change the page?
 

Magentix

if (OP.statement == false) postCount++;
Reaction score
107
Hangs my browser too. FF3.6.8

A few tips:
  • You have WAY too much JavaScript in there (some jQuery would do miracles in readability here)
  • Doing a ton of "else if" just screams inefficiency. Is there no other way to lower the amount of processing you do?
  • I'd bind the onkeydown and onkeyup events to the document/window using javascript, not in the body tag
  • If you want movement while a key is being held down, start a timer on the event ONCE (ergo: one var that gets overwritten) and stop the timer when the key gets released

That's a few things I came up with after looking at your code for 10 seconds.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top