Skip to content

Enable XAML resource trimming by default for WebAssembly Release builds #26070

Open

Description

@MartinZikmund

What would you like to be added? 💡

Turn on UnoXamlResourcesTrimming by default for WebAssembly Release builds of Uno.Sdk apps, with false as the opt-out.

Why is this needed? 🤔

Release WebAssembly builds already run ILLink, but XAML resource trimming stays off unless the app opts in, so every app ships the styles and bindable metadata of controls it never uses. On a blank app that is 1.86 MB brotli of download and 1.7 s of startup on a 4G connection. Few apps know the switch exists.

For which platforms 📱💻🖥️

WebAssembly. Android can't use it: the linker-hints pass fails with IL1034 because the app has no managed entry point. iOS disables it in the SamplesApp because of a binding problem under trimming. Both stay opt-in.

Activity

  1. self-assigned this
    on Nov 4, 2026
  2. added
    kind/enhancement
    platform/wasm 🌐
    area/performance 📈
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/performance 📈kind/enhancementplatform/wasm 🌐

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions