{"id":28089273,"url":"https://github.com/marekpokornyova/blazorlazyload","last_synced_at":"2025-05-13T12:55:50.038Z","repository":{"id":143315562,"uuid":"240081060","full_name":"MarekPokornyOva/BlazorLazyLoad","owner":"MarekPokornyOva","description":"BlazorLazyLoad is a concept of assembly lazy load in Blazor WASM application.","archived":false,"fork":false,"pushed_at":"2020-05-24T16:33:01.000Z","size":246,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T17:19:41.782Z","etag":null,"topics":["blazor","lazyload"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarekPokornyOva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-02-12T18:08:21.000Z","updated_at":"2024-10-14T11:12:54.000Z","dependencies_parsed_at":"2023-05-13T11:45:48.952Z","dependency_job_id":null,"html_url":"https://github.com/MarekPokornyOva/BlazorLazyLoad","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarekPokornyOva%2FBlazorLazyLoad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarekPokornyOva%2FBlazorLazyLoad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarekPokornyOva%2FBlazorLazyLoad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarekPokornyOva%2FBlazorLazyLoad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarekPokornyOva","download_url":"https://codeload.github.com/MarekPokornyOva/BlazorLazyLoad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253948335,"owners_count":21988953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blazor","lazyload"],"created_at":"2025-05-13T12:55:49.319Z","updated_at":"2025-05-13T12:55:50.029Z","avatar_url":"https://github.com/MarekPokornyOva.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BlazorLazyLoad\n\n[![Package Version](https://img.shields.io/nuget/v/BlazorLazyLoad.svg)](https://www.nuget.org/packages/BlazorLazyLoad)\n[![NuGet Downloads](https://img.shields.io/nuget/dt/BlazorLazyLoad.svg)](https://www.nuget.org/packages/BlazorLazyLoad)\n[![License](https://img.shields.io/github/license/MarekPokornyOva/BlazorLazyLoad.svg)](https://github.com/MarekPokornyOva/BlazorLazyLoad/blob/master/LICENSE)\n\n### Description\nBlazorLazyLoad is mostly loudly shared idea/concept of assembly lazy load in Blazor WASM application.\nSplitting an application speeds up its start and also saves network traffic.\n\n### Features\n- Lazy loads assemblies.\n- Lazy resolving on both page and component level.\n- Registers included pages for routing.\n- Registers included services to ServiceProvider.\n\n### Usage\n1) Include Nuget package - https://www.nuget.org/packages/BlazorLazyLoad/ in Blazor WASM application's project.\n2) Create custom assembly lazy load handler. The \\Samples\\01\\BlazorApp\\AreaAssemblyLazyLoadResolver.cs might be good example - it expects areas split strategy. The resolver can also register the services defined in the lazy loaded assembly.\n3) Change Router in App.razor to the enhanced one. That invokes AssemblyLazyLoadResolver when a lazy loaded page is navigated at first (entered to navigation bar or on the page refresh).\n4) Register services - call builder.Services.AddLazyLoad\u003cAreaAssemblyLazyLoadResolver\u003e(); within Program.Main() method.\n5) Redirect navigation event to custom handler - see \\Samples\\01\\BlazorApp\\wwwroot\\index.html.\n6) Create project containing lazy loaded pages - see \\Samples\\01\\LazyLoadedArea.\n7) The built assembly has to be copied from wwwroot\\\\_framework\\\\_bin to the main project's wwwroot\\\\_framework\\\\bin folder. It's recommended to use gzipped versions.\n8) See \\Samples\\01\\BlazorApp\\Pages\\LazyComponent for component level lazy loading.\n\n### Notes\n- All is provided as is without any warranty.\n- The target of this concept has been \"make it functional for any price\". Therefore some pieces are bit \"hacky\".\n- Developed with version 3.2.0 wasm.\n\n### Release notes\n[See](./ReleaseNotes.md)\n\n### Thanks to Blazor team members for their work\n### Thanks to Chris Sainty for his article https://chrissainty.com/an-in-depth-look-at-routing-in-blazor/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarekpokornyova%2Fblazorlazyload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarekpokornyova%2Fblazorlazyload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarekpokornyova%2Fblazorlazyload/lists"}