3 ms·
Haha, awesome find. Did you just dig through the code or are you a NYT dev?
by the_duke 10y ago
Haha, awesome find.
Did you just dig through the code or are you a NYT dev?
- susw 10y agoDug through the code. Just inspected the element showing the number to get the class (.widget-info-display-cont) and searched through 'general-main.js' to find where the element is created. A timer that updates the value in the element is found ~100 lines further down.
- spacehacker 10y agoWhat does the require statement do?
- tedmiston 10y agoThat's how they load the module that does the jittering. So by assigning its .get() method to be a noop instead (return 0), it does nothing (besides pointlessly return zero) when attempting to load.