-
-
Save Aditsyal/5322eee024a97e1c5803e4824a8b71a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- ... --> | |
<script src="flutter.js" defer></script> | |
</head> | |
<body> | |
<div id="loading"></div> | |
<script> | |
window.addEventListener('load', function(ev) { | |
var loading = document.querySelector('#loading'); | |
loading.textContent = "Loading entrypoint..."; | |
_flutter.loader.loadEntrypoint({ | |
serviceWorker: { | |
serviceWorkerVersion: serviceWorkerVersion, | |
} | |
}).then(function(engineInitializer) { | |
loading.textContent = "Initializing engine..."; | |
return engineInitializer.initializeEngine(); | |
}).then(function(appRunner) { | |
loading.textContent = "Running app..."; | |
return appRunner.runApp(); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment