| Index: pkg/polymer/lib/src/loader.dart
|
| diff --git a/pkg/polymer/lib/src/loader.dart b/pkg/polymer/lib/src/loader.dart
|
| index 9681a930519b2f48c7a2ff2f917892c9844abd1d..31661fc2f4e0a0f8843ca3c6c50948daa0278588 100644
|
| --- a/pkg/polymer/lib/src/loader.dart
|
| +++ b/pkg/polymer/lib/src/loader.dart
|
| @@ -48,11 +48,14 @@ void initPolymer() {
|
| */
|
| // TODO(jmesserly): change the Polymer build step to call this directly.
|
| void _initPolymerOptimized() {
|
| - preventFlashOfUnstyledContent();
|
| -
|
| document.register(PolymerDeclaration._TAG, PolymerDeclaration);
|
|
|
| _loadLibraries();
|
| +
|
| + // Run this after user code so they can add to Polymer.veiledElements
|
| + _preventFlashOfUnstyledContent();
|
| +
|
| + customElementsReady.then((_) => Polymer._ready.complete());
|
| }
|
|
|
| /**
|
| @@ -89,8 +92,6 @@ void _loadLibraries() {
|
| new Completer().completeError(e, s);
|
| }
|
| }
|
| -
|
| - customElementsReady.then((_) => Polymer._ready.complete());
|
| }
|
|
|
| /**
|
|
|