ga-wdi-exercises / pixart_js

Use JS events and programmatically generated DOM elements to build a drawing application. [javascript, dom]
MIT License
9 stars 321 forks source link

Jon's HW #292

Closed jgrune closed 8 years ago

jgrune commented 8 years ago

comfort: 3 completeness: 4

why does it take forever to load the page when i bump up the divs i wanted to create to 8000? I left the number at 2000 for this assignment.

andrewsunglaekim commented 8 years ago

line 20, have your for loop just build and append divs, then add the event listener after, right now you're creating 2000 of them, when you only need to create one for all divs.

andrewsunglaekim commented 8 years ago

👍