salesforce / best

:trophy: Delightful Benchmarking & Performance Testing
https://opensource.salesforce.com/best
MIT License
95 stars 10 forks source link

fix: enable cross-origin isolation #307

Closed nolanlawson closed 2 years ago

nolanlawson commented 2 years ago

Details

As described in this post, enabling cross-origin isolation should give us more fine-grained and consistent timings from performance.now(), performance.mark(), etc.

I didn't see a good place to add tests, but let me know if there is one, and I'd be happy to add it. The main outcome is that we want window.crossOriginIsolated to be true in the browser.

Does this PR introduce a breaking change?

sf-v commented 2 years ago

Thank you, @nolanlawson!

Note: Updated the tests and merged this in 81baf5d04465b20d01cf7ae811505709940bb3dd.