i've found that map won't loaded until all resources defined in style have all loaded, it may need too much time to wait.