RStudio Viewer slower than browser

Hi, I'm working on a package for interactive visualization using htmlwidgets and code I've written in TypeScript/JavaScript.

This works fairly well but I've noticed that the apps are a bit laggy in the RStudio Viewer compared to the browser (even if I launch it from RStudio, by clicking the button on the top right of the Viewer panel). The issue doesn't seem to be related to the dataset size & is the most noticeable with smaller datasets (which run snappy in the browser), with larger datasets (~50k cases) the rendering lag swamps out the difference.

Any ideas as to what might be going on?

The link to my repo above has instructions on how to install the package and run examples.