Wait for HTML imports to load before instantiating a gadget