Comments (16)
@isc30 I am just new to Blazor and not expert like you. I suggest Nuget packages, because I noticed that they embed wwwroot as static web assets.
from blazor-lazy-loading.
No worries, I will investigate how to lazy load something like MatBlazor and put you as PR reviewer
from blazor-lazy-loading.
Oqtane works as Blazor Server or WASM. Now I am watching how it works well.
from blazor-lazy-loading.
What about adding components from nuget packages?
E.g. MatBlazor
from blazor-lazy-loading.
That should perfectly fine as long as the Module has a dependency on the nuget packages.
from blazor-lazy-loading.
Well, actually I do not support referencing PackageReferences as modules, good catch
from blazor-lazy-loading.
@GioviQ I just opened another ticket to add that functionality, do you want to make a PR yourself or want me to look at it?
from blazor-lazy-loading.
The latest release includes a demo using a component from a nuget package and an explanation on how to generate a manifest for that assembly too :) @GioviQ
from blazor-lazy-loading.
Thanks I will check.
from blazor-lazy-loading.
@isc30 I checked but it is not what I meant. The faso.blazor.spinkit.1.0.1.nupkg package is not downloaded runtime, it is just present in the build unpackaged. So it is just any other components.
Maybe I am not so interested to lazyness but more on modularization like implemented in Orchard.
My ambition is to realize something like https://demo3.tryorchard.net/Admin/Modules/Features but with Blazor.
from blazor-lazy-loading.
from blazor-lazy-loading.
My modules implement https://github.com/enkodellc/blazorboilerplate/blob/development/src/Shared/BlazorBoilerplate.Shared/Interfaces/IModule.cs
so I solved the init. I have to implement donwload and wwwroot folder merge.
from blazor-lazy-loading.
Here the source of Orchard https://github.com/OrchardCMS/Orchard
The core version is still in RC
https://github.com/OrchardCMS/OrchardCore
from blazor-lazy-loading.
I discovered now that https://github.com/oqtane/oqtane.framework has module package download.
from blazor-lazy-loading.
from blazor-lazy-loading.
Please keep me posted on this.
If your plan is to "upload" a DLL on runtime (WASM) and loading it, it can be done easily with IAssemblyLoader.
from blazor-lazy-loading.
Related Issues (20)
- Use the library in BlazorBoilerPlate? HOT 11
- Support Components from NuGet packages HOT 5
- Non referenced RCLs (RazorClassLibraries) HOT 1
- Rework the Module system
- Static WebAssembly + AspNetCore host
- Support lazy Generic Components
- Usage of DryIoc for registering services on runtime
- Going Raw
- I could not run the demo project properly HOT 5
- Add PWA support to the Demo
- All DLLs are added as part of the initial load HOT 2
- Linker adds unused dependencies as boot HOT 4
- Support blazor-lazy-loading in Prise
- Can we debug a module with Blazor Wasm? HOT 3
- Lazy loading seems not working. HOT 2
- Support new .NET 5 lazy assembly loader HOT 15
- Only RCL-based components or entire pages? HOT 2
- Unhandled exception rendering component: Cannot consume scoped service 'System.Net.Http.HttpClient' from singleton BlazorLazyLoading.Abstractions.IContentFileReader HOT 2
- Could not find assembly 'Microsoft.AspNetCore.Hosting.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Either explicitly load this assembly using a method such as LoadFromAssemblyPath() or use a MetadataAssemblyResolver that returns a valid assembly. HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blazor-lazy-loading.