Prepares the DOM for your Flutter app and runs it.

This page shows how to customize the behavior
at each stage of the initialization process.

Getting started

By default, the index.html file
generated by the flutter create command
contains a script tag
that calls loadEntrypoint from the flutter.js file:

<html>

<head>

<!-- ... -->

<script

src=

"flutter.js"

defer

></script>

</head>

<body>

<script>

window

addEventListener

load

function

ev

// Download main.dart.js

_flutter

loader

loadEntrypoint

({

serviceWorker