The callback for importHref isn't able to find the css rules and applies a blank rule. Moving the startApp(); out of the importHref function allows the css to load but I don't know if there other unintended consequences of adding the elements before the import finishes.
`public class Designer implements EntryPoint {
/**
* This is the entry point method.
*/
public void onModuleLoad() {
Polymer.importHref(Arrays.asList(PaperButtonElement.SRC), new Function() {
public Object call(Object arg) {
// The app is executed when all imports succeed.
startApp();
return null;
}
});
}
private void startApp() {
RootPanel.get().add(new CSSBinder());
}
The callback for importHref isn't able to find the css rules and applies a blank rule. Moving the startApp(); out of the importHref function allows the css to load but I don't know if there other unintended consequences of adding the elements before the import finishes.
`public class Designer implements EntryPoint {
}`