CSS vs JS, and more.

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/5

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:50 PM on 7/13/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

6 Terms

1
New cards

What does JS run on?

The main thread.

2
New cards

What does React on the main thread update? Name some processes.

  • Fetching (async)

  • Load (mounting)

  • Refresh (useEffect)

3
New cards

Why is it important for less things on main thread? What is a specific issue? A specific example?

May freeze up and cause lag.

  • Specific, JS will NOT snap to current time, has its own time so will be delayed than real time.

  • A frozen load wheel.

4
New cards

What runs on other threads? Specifics?

  • CSS

  • Motion (uses WAAPI)

5
New cards

Therefore, what should you reach for usually?

CSS or Motion, or things that use WAAPI

6
New cards

What is WAAPI?

Low-level API that is similar to CSS animations