Skip to content

Commit 79904b3

Browse files
authored
Merge pull request #101778 from microsoft/joh/fix/101685
Ignore less cached data when more is available
2 parents 376d9d9 + 75775cb commit 79904b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vs/loader.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,12 @@ var AMDLoader;
870870
}
871871
var cachedData = script.createCachedData();
872872
if (cachedData.length === 0 || cachedData.length === lastSize || iteration >= 5) {
873+
// done
874+
return;
875+
}
876+
if (cachedData.length < lastSize) {
877+
// less data than before: skip, try again next round
878+
createLoop();
873879
return;
874880
}
875881
lastSize = cachedData.length;

0 commit comments

Comments
 (0)