benchmark load now

This is a slight ergonomics improvement for faster benchmark loading.
We should be able to apply this to gui as well if it already does do
the same thing.
This commit is contained in:
Michael "Z" Goddard 2019-02-01 15:36:01 -05:00
parent 991acbb36a
commit 0e9357b062
No known key found for this signature in database
GPG key ID: 762CD40DD5349872

View file

@ -725,7 +725,7 @@ const renderBenchmarkData = function (json) {
setShareLink(json);
};
window.onload = function () {
const onload = function () {
if (location.hash.substring(1).startsWith('view')) {
document.body.className = 'render';
const data = location.hash.substring(6);
@ -747,3 +747,5 @@ if (window.performance) {
}
window.ScratchVMEvalEnd = Date.now();
onload();