Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate content from 'Customizing web app initialization' page source #9254

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions src/platform-integration/web/initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,13 @@ that calls `loadEntrypoint` from the `flutter.js` file:
</html>
```



{{site.alert.note}}
In Flutter 2.10 or earlier,
this script doesn't support customization.
To upgrade your `index.html` file to the latest version,
see [Upgrading an older project](#upgrading-an-older-project).
{{site.alert.end}}



The `loadEntrypoint` function calls the `onEntrypointLoaded` callback
once the Service Worker is initialized, and the `main.dart.js` entrypoint
has been downloaded and run by the browser. Flutter also calls
Expand Down Expand Up @@ -143,7 +139,6 @@ You can add any of the following optional parameters:

[jsflutterconfig-source]: {{site.github}}/flutter/engine/blob/main/lib/web_ui/lib/src/engine/configuration.dart#L247-L259
[web-renderers]: {{site.url}}/platform-integration/web/renderers
[web-renderers]: {{site.url}}/platform-integration/web/renderers

{{site.alert.note}}
Some of the parameters described above might have been overridden
Expand Down Expand Up @@ -177,7 +172,7 @@ For a more detailed explanation of each parameter, take a look at the
**"Runtime parameters"** documentation section of the [`configuration.dart`][config-dart]
file of the web engine.

[config-dart]: {{site.github}}/flutter/engine/blob/main/lib/web_ui/lib/src/engine/configuration.dart#L150
[config-dart]: {{site.github}}/flutter/engine/blob/main/lib/web_ui/lib/src/engine/configuration.dart#L174

#### Skipping this step

Expand All @@ -186,7 +181,6 @@ Instead of calling `initializeEngine()` on the engine initializer (and then
initialize the engine with its default configuration, and then start the app
immediately after the initialization is complete:


```js
_flutter.loader.loadEntrypoint({
serviceWorker: {
Expand All @@ -204,7 +198,6 @@ To give the user of your application feedback
during the initialization process,
use the hooks provided for each stage to update the DOM:


```html
<html>
<head>
Expand Down Expand Up @@ -235,7 +228,6 @@ use the hooks provided for each stage to update the DOM:
</html>
```


For a more practical example using CSS animations,
see the [initialization code][gallery-init] for the Flutter Gallery.

Expand Down