Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
300+ text inputs causes chrome to choke
Old 01-14-2012, 02:31 AM 300+ text inputs causes chrome to choke
RadGH's Avatar
Skilled Talker

Posts: 76
Name: Radley
Trades: 0
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

  1. Can somebody confirm the performance issue on Chrome?
  2. Does this also exist in other webkit browsers? (Works fine in Safari for PC)
  3. 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..
RadGH is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-14-2012, 04:32 AM Re: 300+ text inputs causes chrome to choke
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
1. Yes. I also experienced the slight delay in Chrome.
2. Works perfectly fine in Firefox.
3. Sorry, no
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 01-14-2012, 05:06 AM Re: 300+ text inputs causes chrome to choke
RadGH's Avatar
Skilled Talker

Posts: 76
Name: Radley
Trades: 0
Thanks for the confirmation. I did test converting the inputs to divs and making the click event turn ContentEditable = true, which did solve the issue and still functioned just fine. Unfortunately, this removes much of the functionality, including the form's submit() function.


If not for already having the backend saving and load designed this would be easy, but now I'll have to rewrite a bunch of code. Argh...

I'll probably just have everyone use firefox. Hell, even IE9 doesn't have the issue. Even safari! Bleh
RadGH is offline
Reply With Quote
View Public Profile
 
Old 01-14-2012, 01:38 PM Re: 300+ text inputs causes chrome to choke
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
I don't know how much of a delay you experienced, but for me it was no more than a second or so. Unless you plan to add evan more text fields, I wouldn't worry much about it. This is an issue for the Chrome developers to tackle, not you
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 01-14-2012, 03:37 PM Re: 300+ text inputs causes chrome to choke
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
I didn't get any lag on that page. Nice character sheet, by the way!

The lag might be coming from the way Chrome handles text boxes. I don't know Chrome that well, but chances are if you have a bad processor (the hardware), pumping out all those inputs could be what's lagging. I'm using a quad-core 2.8Ghz processor, and there was no lag for me.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 01-14-2012, 03:45 PM Re: 300+ text inputs causes chrome to choke
RadGH's Avatar
Skilled Talker

Posts: 76
Name: Radley
Trades: 0
I'm sure that a powerful CPU would fix the issue. I have a 1.6ghz quad core (720QM), so yours is certainly better. The thing is, no other browser has the issue. So far I've tested:

IE6 (vm, xp sp3)
IE9 w/ IE7 mode
IE9
Firefox 8
Safari 5.1

I submitted a chromium browser ticket, which I think is the right way to report the issue.

http://code.google.com/p/chromium/is...&ts=1326573444

I've also attached a test page there which has the same result, even without all of the custom CSS.


The character sheet was not made by me, but the original is made to print out and use - which makes complete sense. But we play on PC, so it's much more convenient to have editable like this, and I love wasting time with useless projects like this just for the experience. See http://charactersheets.minotaur.cc/ for the original sheets, they're wonderful.
RadGH is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to 300+ text inputs causes chrome to choke
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26778 seconds with 12 queries