Changelog #017

Feb 23rd, 2024 - Lazy Loading Performance Boosts

Follow us on twitter for realtime updates or read our previous changelog here

Lazy Loading Performance Boosts

We shipped lazy loading this week! This is a big win for performance, we can load super large OpenAPI Spec files with a breeze now.

Below is a video showcasing us loading a 10MB OpenAPI Spec file in Scalar with no problems, before it would freeze the browser which is definitely not ideal.

Switch CodeMirror to Prism

We swapped out CodeMirror for Prism which improved performance and also reduced our bundle size by 17%! CodeMirror is amazing, but we really only needed highlighting functionality for displaying code.

Fixes & Improvements

So much work was put into smaller improvements + UX of our app, all the small details make the world of difference ✨

  • fix: quick fix for supporting application/problem+json (#1040)
  • fix: remove use clipboard (#1038)
  • fix: remove use keyboard event (#1037)
  • chore: recommend official vitest extension (#1029)
  • fix: basic auth shows encoded colon string, fix #1026 (#1031)
  • fix: onSpecUpdate isn’t called, fix #1021 (#1032)
  • fix: urls with dynamic protocol are prefixed with the window location origin, fix #1035 (#1036)
  • chore: remove some CodeMirror languages (#1030)
  • chore: remove use toasts (#993)
  • fix: changelog mentions package that doesn’t exist
  • fix: named exports fail in ESM (#1033)
  • feat: add scalar-modal-class (#1027)
  • feat: switch codemirror to prism (#1018)
  • feat: add lazy loading to API references (#1013)
  • fix: tab overflow hidden (#1023)
  • fix: set max height on request body codemirror (#1022)
We are incredibly grateful for the Scalar community, all the feedback has been truly inspiring, helps guide us to prioritize fixes and we are looking forward to releasing more features and fixes for the next changelog ✨

Join us:

Marc

CEO & Co-Founder, Scalar