All Projects → MarekPokornyOva → BlazorLazyLoad

MarekPokornyOva / BlazorLazyLoad

Licence: MIT license
BlazorLazyLoad is a concept of assembly lazy load in Blazor WASM application.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to BlazorLazyLoad

lazyload-vue
Vue Plugin for vanilla-lazyload
Stars: ✭ 29 (+81.25%)
Mutual labels:  lazyload
Blazaco
A Blazor Component utilizing the Monaco editor by Microsoft
Stars: ✭ 23 (+43.75%)
Mutual labels:  blazor
Blazor-Dashboard
Admin Dashboard Template Theme for Blazor
Stars: ✭ 94 (+487.5%)
Mutual labels:  blazor
blazor.jwttest
Quick test using JWT authentication for a blazor hosted (Client/Serverside) app with API and Authentication.
Stars: ✭ 30 (+87.5%)
Mutual labels:  blazor
BestForYouRecipes
Best For You recipes site in Blazor
Stars: ✭ 63 (+293.75%)
Mutual labels:  blazor
BlazorAuthenticationSample
A sample showing some of the ASP.NET Core Blazor authentication features (also some testing...) 🚀
Stars: ✭ 78 (+387.5%)
Mutual labels:  blazor
lazysimon
Minimal effort 350 byte JavaScript library to lazy load all <img> on your website
Stars: ✭ 18 (+12.5%)
Mutual labels:  lazyload
Blazorade-Teams
A Blazor component library that is designed to be used when building applications for Microsoft Teams.
Stars: ✭ 29 (+81.25%)
Mutual labels:  blazor
AspNetCore.Client
On Build client generator for asp.net core projects
Stars: ✭ 14 (-12.5%)
Mutual labels:  blazor
smart-blazor
Blazor UI Components & Examples
Stars: ✭ 32 (+100%)
Mutual labels:  blazor
FlappyBlazorBird
FlapPyBird transcoded to Blazor
Stars: ✭ 54 (+237.5%)
Mutual labels:  blazor
use-lazyload-ref
🖼️ Custom hook to use lazyload easily
Stars: ✭ 58 (+262.5%)
Mutual labels:  lazyload
BlazorHealthApp
Example application ported from Angular 2 to Blazor
Stars: ✭ 37 (+131.25%)
Mutual labels:  blazor
youtube-lazyload
LazyLoad Embed YouTube Player - simple and lightweight plugin - pure JavaScript
Stars: ✭ 23 (+43.75%)
Mutual labels:  lazyload
fast-blazor
Blazor component library for FluentUI. Microsoft's official lightweight wrapper around the FluentUI Web Components for use with .NET 6.0 Blazor applications
Stars: ✭ 928 (+5700%)
Mutual labels:  blazor
awesome-blazor-browser
A Blazor WebAssembly app for browsing the "Awesome Blazor" resources.
Stars: ✭ 155 (+868.75%)
Mutual labels:  blazor
Flexor
Blazor flexbox components
Stars: ✭ 23 (+43.75%)
Mutual labels:  blazor
EmbeddedBlazorContent
Library to load embedded content files (js and css) from Blazor libraries in server-side Blazor mode.
Stars: ✭ 39 (+143.75%)
Mutual labels:  blazor
cakephp-lazyload
A lazy loader for CakePHP entities.
Stars: ✭ 61 (+281.25%)
Mutual labels:  lazyload
jekyll-loading-lazy
🧙🏽‍♀️ Automatically adds loading="lazy" to <img> and <iframe> tags. Load images on your sites lazily without JavaScript.
Stars: ✭ 41 (+156.25%)
Mutual labels:  lazyload

BlazorLazyLoad

Package Version NuGet Downloads License

Description

BlazorLazyLoad is mostly loudly shared idea/concept of assembly lazy load in Blazor WASM application. Splitting an application speeds up its start and also saves network traffic.

Features

  • Lazy loads assemblies.
  • Lazy resolving on both page and component level.
  • Registers included pages for routing.
  • Registers included services to ServiceProvider.

Usage

  1. Include Nuget package - https://www.nuget.org/packages/BlazorLazyLoad/ in Blazor WASM application's project.
  2. 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.
  3. 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).
  4. Register services - call builder.Services.AddLazyLoad(); within Program.Main() method.
  5. Redirect navigation event to custom handler - see \Samples\01\BlazorApp\wwwroot\index.html.
  6. Create project containing lazy loaded pages - see \Samples\01\LazyLoadedArea.
  7. 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.
  8. See \Samples\01\BlazorApp\Pages\LazyComponent for component level lazy loading.

Notes

  • All is provided as is without any warranty.
  • The target of this concept has been "make it functional for any price". Therefore some pieces are bit "hacky".
  • Developed with version 3.2.0 wasm.

Release notes

See

Thanks to Blazor team members for their work

Thanks to Chris Sainty for his article https://chrissainty.com/an-in-depth-look-at-routing-in-blazor/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].