top | item 32323602

(no title)

baisq | 3 years ago

Why is table.html loaded as an external resource instead of being in index.html proper?

discuss

order

louwrentius|3 years ago

I can't remember why I did that, probably to keep the data separate from the rest of the code.

chrismorgan|3 years ago

The technique used means that it always takes a while to load it, as it’s reloading it after every change, which is generally taking around two seconds for me. You make it still worse by using 'change' and 'keyup' events, so any key press (e.g. left/right arrow) triggers it. It should use the 'input' event.

Even if it were done as a separate page, it should still be shown or hidden via the CSS display property in order to avoid this reloading.