Frontend development tips Flashcards
Why onSuccess/onError removed from useQuery
- An additional render cycle
- The callbacks might not run (cache)
soultion: onDataChanged in effect
https://tkdodo.eu/blog/breaking-react-querys-api-on-purpose#state-syncing
How can slow down the browser speed?
Chrome DevTools > Performance Tab
CPU = 4 *slow down or …
Which size metric is most relevant when considering the impact of a JavaScript library on a project?
The minified and gzipped size is the most relevant metric as it reflects the compressed size of the JavaScript code for efficient network transfer and optimal page loading.
https://bundlephobia.com/
what’s the categories for a system design in frontend side
- features
- non-functional requirements
- user experience
- engineering
- back in API
what things are considered in features category FE sys Design
- MVP
- high-level estimation
- core functionality
High level estimation
data volume , Peak traffic
what items are included in non-functional requirements in front end system design
- performance
- offline mode
- security
- high availability
performance
* Cache
* CDN
* load on demand or preload
* page spliting
offline mode
* local storage
* indexedDB
security
* xss
* csrf
high availability
* load balancer
* health check