searchspring / snap

Snap is Searchspring's latest front end integration SDK
https://searchspring.github.io/snap/
MIT License
8 stars 1 forks source link

Snap Template Performance Check #951

Open korgon opened 11 months ago

korgon commented 11 months ago

Need to do an evaluation on where Snap Templates is at with regards to performance.

  1. Compare lighthouse or similar scoring between snap-preact-demo and snap-preact-templates-demo
  2. Investigate bundle chunks and correct issues where found (ex: bocachica importing Icon component, Search template component importing Swiper)
korgon commented 10 months ago

Initial investigation revealed that templates does have some overhead that reduces overall performance by a couple of points. This is expected, but may be able to be improved with skeleton / lazy loading to prevent large CLS.

https://docs.google.com/spreadsheets/d/1W9Kcqn3jIUw4wJLKN11tZozGIuGoHpWjNZ9MM-KWUqs/edit#gid=0