Skip to content

Commit f3812b7

Browse files
committed
refactor(web): replace custom Flutter loading script with bootstrap
- Remove custom Flutter loading script - Replace with {{ flutter_bootstrap_js }} placeholder - Simplify HTML structure for better maintainability
1 parent c97c2b7 commit f3812b7

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

web/index.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,13 @@
131131
<div id="splash-container" class="center">
132132
<div class="loader"></div>
133133
</div>
134-
<script src="flutter.js" defer></script>
135134
<script>
136-
window.addEventListener('load', function () {
137-
_flutter.loader.loadEntrypoint({
138-
onEntrypointLoaded: function (engineInitializer) {
139-
engineInitializer.initializeEngine().then(function (appRunner) {
140-
appRunner.runApp();
141-
});
142-
}
143-
});
144-
});
135+
{ { flutter_bootstrap_js } }
145136
</script>
137+
138+
139+
140+
146141
</body>
147142

148143
</html>

0 commit comments

Comments
 (0)