gpbl / react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.
https://daypicker.dev
MIT License
5.86k stars 700 forks source link

Core Web Vitals : Unused Javascript is high when used with Next JS SSR #2184

Closed ShivaGuidesly closed 3 weeks ago

ShivaGuidesly commented 3 weeks ago

Description

Core Web Vitals : Unused Javascript is high when used with Next JS SSR . After integrating with Next JS app the unused javascript report is high for this component.

Expected Behavior

Reduce the unused JavaScript.

Actual Behavior

TBT is increased due to the unusual javascript.

Steps to Reproduce

  1. Install the package on a next JS app
  2. Add the package
  3. Run the light house to observe that there are unused java script showing up for this component causing slowness on page
gpbl commented 3 weeks ago

@ShivaGuidesly interesting thanks for the report. Could you replicate the issue somewhere, e.g. https://codesandbox.io ?