I'm making an interactive character sheet for D&D on my website. It's based on another character sheet, and simply adds text boxes and check boxes (and eventually will do some calculations for us).
It works great so far, except there is one rather essential bug... It's incredibly laggy when using Chrome!
If you try typing into the fields, it inserts one character then freezes for a few seconds. Mind you there are easily 300 text inputs on screen at one time.
Is there anything I can do to fix this performance issue? I don't think it's javascript related.
I set up a public test account for stackoverflow, but we can use it here:
http://radleygh.com/dnd/index.php
username: stackoverflow
password: testthispage
- Can somebody confirm the performance issue on Chrome?
- Does this also exist in other webkit browsers? (Works fine in Safari for PC)
- Does anyone have any suggestions to fix the issue? (Perhaps converting the text boxes to simple <div> elements until you click on them?)
I'm completely stumped. For a long time this was working flawlessly, until I added the entire right column of inputs, then it suddenly started choking if I typed. No idea what the issue is. :/
Last edited by RadGH; 01-14-2012 at 02:32 AM..
|