Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: lib/runtime/messages_widget.dart

Issue 1131933003: Load time improvements (fixes #140) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/devc.dart ('k') | lib/runtime/messages_widget.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/messages_widget.dart
diff --git a/lib/runtime/messages_widget.dart b/lib/runtime/messages_widget.dart
index 469eddab21978e09e1fcd590af23774ba915b426..e2930c9e96721969bb9e959d2b894fb2a00593a9 100644
--- a/lib/runtime/messages_widget.dart
+++ b/lib/runtime/messages_widget.dart
@@ -15,7 +15,10 @@ import 'package:path/path.dart' as path;
import 'package:source_span/source_span.dart';
import 'package:dev_compiler/src/summary.dart';
-main() async => displayMessages(await HttpRequest.getString('messages.json'));
+main() async {
+ await window.animationFrame;
+ displayMessages(await HttpRequest.getString('messages.json'));
+}
void displayMessages(String data) {
var summary = GlobalSummary.parse(JSON.decode(data));
« no previous file with comments | « lib/devc.dart ('k') | lib/runtime/messages_widget.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698