mjlading / flashlearn

A learning webapp for students
https://flashlearn.no
2 stars 0 forks source link

Rudimentary optimization and performance profiling #88

Open Gunnar-Solli-Olsen opened 5 months ago

Gunnar-Solli-Olsen commented 5 months ago

For a smooth user experience on all devices, we should explore some options for measuring and optimizing performance.

https://trpc.io/blog/typescript-performance-lessons

Gunnar-Solli-Olsen commented 4 months ago

What should be optimized?

Gunnar-Solli-Olsen commented 4 months ago

For the purposes of the bachelor writeup, initial ui loading times should be noted down, what changes are done to improve them, and total improvement achieved.

Gunnar-Solli-Olsen commented 4 months ago

We should try prefetching pages if they are slow to load https://developer.mozilla.org/en-US/docs/Glossary/Prefetch#prefetch_attribute_value

https://nextjs.org/learn-pages-router/basics/data-fetching/two-forms

Gunnar-Solli-Olsen commented 4 months ago

Performance profiling needs to be done on production build due to 'next dev' not prerendering pages, along with multiple other differences in how pages are loaded.

https://nextjs.org/learn-pages-router/basics/data-fetching/two-forms