What Can I Do To Monitor and Improve My Shiny App's Performance?
summary
Shows how to collect real user Core Web Vitals (FCP, LCP, FID, CLS) by adding the Web Vitals JS library and an R wrapper that exposes implement_web_vitals to emit metrics into Shiny inputs, then saving them to a DB for longitudinal monitoring; demos Lighthouse lab checks vs field data collection. Practical fixes: replace read.csv with data.table::fread (often ~10x faster), load data on demand, use server = TRUE for DT, avoid loading multiple heavy JS plotting libs, and fix CLS with CSS max-width.
AI-written summary · about
