Optimizing Rendering Performance: Quiz

Optimizing is both an art and a science. Take a quiz to test yourself on optimization in this lesson.

1

Why should JavaScript be kept to 3-4 ms to keep scrolling performance smooth?

A)

If your JavaScript runs for longer than that, it may block scrolling, potentially causing missed frames.

B)

Any JavaScript that runs for less time than that will cause jank.

C)

If your JavaScript runs for longer than that, it will block the Web Workers that make scrolling happen.

Question 1 of 120 attempted

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.