mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
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:
parent
991acbb36a
commit
0e9357b062
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue