<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blazor &#8211; ASP.NET Hosting Reviews and Guides</title>
	<atom:link href="https://topreviewhostingasp.net/tag/blazor/feed/" rel="self" type="application/rss+xml" />
	<link>https://topreviewhostingasp.net</link>
	<description>Help you to find best ASP.NET Core Hosting</description>
	<lastBuildDate>Fri, 23 Aug 2024 07:32:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://topreviewhostingasp.net/wp-content/uploads/2017/01/cropped-trhaico-32x32.png</url>
	<title>blazor &#8211; ASP.NET Hosting Reviews and Guides</title>
	<link>https://topreviewhostingasp.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is the Difference Between Blazor Server and Blazor Web Assembly</title>
		<link>https://topreviewhostingasp.net/what-is-the-difference-between-blazor-server-and-blazor-web-assembly/</link>
					<comments>https://topreviewhostingasp.net/what-is-the-difference-between-blazor-server-and-blazor-web-assembly/#respond</comments>
		
		<dc:creator><![CDATA[Jacques Hunt]]></dc:creator>
		<pubDate>Fri, 23 Aug 2024 07:32:56 +0000</pubDate>
				<category><![CDATA[Hosting Tips]]></category>
		<category><![CDATA[blazor]]></category>
		<category><![CDATA[blazor hosting]]></category>
		<category><![CDATA[blazor server]]></category>
		<category><![CDATA[blazor web assembly]]></category>
		<guid isPermaLink="false">https://topreviewhostingasp.net/?p=3875</guid>

					<description><![CDATA[Should you be regularly updated about.NET developments, you may be familiar with the concept of Blazor. However, what exactly is Blazor? Why is it so well-liked? Let&#8217;s visualize it to better grasp its importance. A major component of accomplishing client-side tasks for web development is Javascript. You can save a significant number of backend calls [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Should you be regularly updated about.NET developments, you may be familiar with the concept of Blazor. However, what exactly is Blazor? Why is it so well-liked? Let&#8217;s visualize it to better grasp its importance.</p>
<p>A major component of accomplishing client-side tasks for web development is Javascript. You can save a significant number of backend calls by making changes to the Document Object Model (DOM). Building functionalities would be a direct outcome of this. They have begun using typescripts since more sophisticated iterations of javascript-based user interface frameworks (like view, angular, react, etc.) have been released.</p>
<p>Thus, you need to learn Javascript if you want your client-side functionalities to work properly. There&#8217;s a catch, though. Depending on the UI framework, you may need to learn a different version of Javascript. This is where Microsoft saves the day for us. Their goal was to lessen our reliance on Javascript by releasing Blazor, an open-source web framework.</p>
<p>Blazor makes it simple to accomplish the functionalities that were previously possible with Javascript. Javascript is no longer a concern when creating rich web UI/UX experiences with CSS, C#, and HTML. After reading through the background, it&#8217;s time to learn more about Blazor and how it can simplify client-side tasks for web developers.</p>
<h2>What Is Blazor?</h2>
<p>Blazor is an open-source, free web framework that makes it simple for developers to write C# code for highly interactive websites. Javascript is no longer necessary when developing client-side C# and.NET library applications. The byte code for WebAssembly is compiled from the.NET runtime. After that, all.NET DLLs can run because the.NET runtime is integrated into the browser. All of the C# code you have written is included in this. There are two methods for hosting Blazor:</p>
<ol>
<li>Blazor WebAssembly</li>
<li>Blazor server</li>
</ol>
<p><img fetchpriority="high" decoding="async" class=" wp-image-3844 aligncenter" src="https://topreviewhostingasp.net/wp-content/uploads/2024/05/blazor-webassembly.png" alt="" width="400" height="224" srcset="https://topreviewhostingasp.net/wp-content/uploads/2024/05/blazor-webassembly.png 300w, https://topreviewhostingasp.net/wp-content/uploads/2024/05/blazor-webassembly-50x28.png 50w" sizes="(max-width: 400px) 100vw, 400px" /></p>
<div class="Blog--sub--title--lg pt-5">
<h2>What is Blazor Server?</h2>
</div>
<div class="Blog--description--wrapper pt-3">
<p>The <a href="https://topreviewhostingasp.net/how-to-build-web-application-using-blazor/" target="_blank" rel="noopener">Blazor server</a> is a hosting model that was introduced with.NET core version 3.0 and enables the execution of an application directly on the server. In order to facilitate the integration of server-side functionality, it makes use of ASP.NET core. It uses SignalR to create a connection between the client-side browser and the server-side. SignalR transmits data to the server whenever a client-side interaction takes place. The page has been updated.</p>
<p>In the event that the client side communicates again, the server only transmits the modified HTML over the SignalR server, which updates the client&#8217;s user interface. For the user, this results in a flawless and extremely responsive experience.</p>
<h3><strong>Overview Blazor Server</strong></h3>
<p>The pros of the <strong>Blazor server</strong> are as follows:</p>
<ol>
<li>Applications load very quickly because users only download the HTML variations and do not download the complete application libraries.</li>
<li>Since the C# files are not being transferred to the client-side, backend code is isolated.</li>
<li>Compatibility with earlier browser versions as well.</li>
</ol>
<p>The cons of the <strong>Blazor server</strong> are as follows:</p>
<ol>
<li>Network instability can be a major issue because the entire process is online and files are transferred from the server to the client-side.</li>
<li>Scalability is a gray area because memory consumption will increase dramatically because new WebSockets are created each time a new connection is established.</li>
</ol>
<h2>What’s Blazor Web assembly?</h2>
<p>The Blazor WebAssembly is the company&#8217;s second hosting model, which was released in May 2020. WebAssembly is integrated with a.NET runtime. This provides consistent bytecode across web applications. Blazor WebAssembly and this.NET runtime are downloaded together, allowing standard.NET code to run in the browser. There is no need for SignalR or any other additional plugin to keep the connection between the client and the server active once this is operating from the client-side.</p>
<p><img decoding="async" class="size-full wp-image-3463 aligncenter" src="https://topreviewhostingasp.net/wp-content/uploads/2023/03/blazor.webp" alt="" width="461" height="450" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/03/blazor.webp 461w, https://topreviewhostingasp.net/wp-content/uploads/2023/03/blazor-300x293.webp 300w, https://topreviewhostingasp.net/wp-content/uploads/2023/03/blazor-50x50.webp 50w" sizes="(max-width: 461px) 100vw, 461px" /></p>
<p>However, Blazor WebAssembly cannot be integrated with server-side applications. Additionally, a web API was needed for data exchange and communication.</p>
<h3><strong>Overview Blazor Web Assembly</strong></h3>
<p>The pros of <strong>Blazor WebAssembly</strong> are as follows:</p>
<ol>
<li>Given that the entire Blazor WebAssembly: site content is downloaded client-side, the user interface</li>
<li>After the initial loading time, responds incredibly quickly to user requests or interactions.</li>
<li>There is offline support available: Blazer WebAssembly&#8217;s extremely long initial loading time is its lone flaw.</li>
</ol>
<h2>Implementation of Blazor Server</h2>
<p>To successfully implement Blazor Server, follow these steps:</p>
<ol>
<li>Once you open Visual studio 2019, create a new project and look for a <strong>Blazor server</strong>.</li>
<li>Choose a framework from the list and give the solution a real name when choosing the project.</li>
<li>Look for developer tools in your browser to get a better understanding of the data communication between the client and the server.</li>
<li>Go to the networks tab now, and refresh the page.</li>
<li>Now, server styles and blazor.server.js are present in addition to the SignalR communication. Data communication in binary format is pushed by SignalR communication.</li>
<li>Additional network calls are added in the messages tab under SignalR communication each time you click a button on the webpage.</li>
<li>This demonstrates that the server side is used to request and fetch the pages.</li>
</ol>
<div class="Blog--sub--title--lg pt-5">
<h2>Implementation OF Blazor Web Assembly</h2>
</div>
</div>
<div>
<p>Here are the steps for the successful implementation of Blazo WebAssembly:</p>
<ol>
<li>When Visual Studio 2019 opens, open a new project and search for the Blazor WebAssembly program.</li>
<li>Choose a framework from the list and give the solution a real name when choosing the project.</li>
<li>Look for developer tools in your browser to get a better idea of how the Blazor Web Assembly functions.</li>
<li>The dotnet.version.js file and the blazor.webassembly.js file are located here. This indicates that there is load on the web assembly.</li>
<li>Try navigating between the tabs now. There won&#8217;t be any exchange of messages between the client and server. Only the necessary data is retrieved in JSON format.</li>
<li>Proceed to the fetch data tab after that. The weather, and a network call. The JSON file will appear right away.</li>
<li>Now that the data is saved in a JSON file, it is being retrieved straight.</li>
</ol>
<h2>What Are The Differences Between The Blazor Web and Server Assemblies?</h2>
<p>Now that you are aware of the distinctions between Blazor WebAssembly and a Blazor server, let&#8217;s pose the most crucial query in this case study. When developing a Blazor application, which hosting provider should you use?</p>
<p>Everything is contingent upon the purpose and functionalities of the application you intend to develop with Blazor. Blazor WebAssembly is the clear choice if you wish to develop a standard application from a location with a shaky internet connection. This is due to the fact that you can continue developing apps even in the absence of a server connection.</p>
<p>However, choosing the Blazor server would be sensible if you always have a reliable internet connection and don&#8217;t have any trouble connecting to a server.</p>
<h2>Bottom Line</h2>
<p>Every <a href="https://topreviewhostingasp.net/best-fast-cloud-asp-net-core-hosting-services/" target="_blank" rel="noopener">Blazor hosting service</a> has advantages and disadvantages of its own. You have the freedom to select the hosting service that best suits your needs and preferences. For instance, use a Blazor WebAssembly approach if you don&#8217;t want the public to see your code because it contains sensitive data. But using a Blazor server is the best option if you want to make your application widely available and draw in a sizable user contingent.</p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://topreviewhostingasp.net/what-is-the-difference-between-blazor-server-and-blazor-web-assembly/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How Lazyloading Works to Increase Your Blazor Performance?</title>
		<link>https://topreviewhostingasp.net/implement-lazyloading-increase-blazor-website-performance/</link>
					<comments>https://topreviewhostingasp.net/implement-lazyloading-increase-blazor-website-performance/#respond</comments>
		
		<dc:creator><![CDATA[Jacques Hunt]]></dc:creator>
		<pubDate>Fri, 16 Jun 2023 08:08:55 +0000</pubDate>
				<category><![CDATA[Hosting Tips]]></category>
		<category><![CDATA[blazor]]></category>
		<category><![CDATA[blazor performance]]></category>
		<category><![CDATA[blazor tutorial]]></category>
		<category><![CDATA[blzor tips]]></category>
		<category><![CDATA[implement lazyloading]]></category>
		<category><![CDATA[increase blazor speed]]></category>
		<category><![CDATA[lazyloading blazor]]></category>
		<guid isPermaLink="false">https://topreviewhostingasp.net/?p=3575</guid>

					<description><![CDATA[In this article, we&#8217;ll examine how to implement lazy loading using Blazor WebAssembly. We can speed up the startup of our Blazor WebAssembly application by delaying the download of resources we don&#8217;t currently require. For instance, downloading all the files pertaining to products, authentication, and other things is useless if we have a large Blazor [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this article, we&#8217;ll examine how to implement lazy loading using Blazor WebAssembly. We can speed up the startup of our Blazor WebAssembly application by delaying the download of resources we don&#8217;t currently require. For instance, downloading all the files pertaining to products, authentication, and other things is useless if we have a large Blazor WebAssembly application and our users only want to view the home or contact pages. The program will only download these resources if the user specifically requests them when lazy loading is enabled.</p>
<h2>Setup Blazor WASM Project</h2>
<p>Open the Visual Studio and search for Blazor App. Click on the Next button,</p>
<p><img decoding="async" class=" wp-image-3576 aligncenter" src="https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-min.jpg" alt="" width="604" height="316" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-min.jpg 742w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-min-300x157.jpg 300w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-min-50x26.jpg 50w" sizes="(max-width: 604px) 100vw, 604px" /></p>
<p>Define the project name, path, and solution name. Click on the Create button,</p>
<p><img loading="lazy" decoding="async" class=" wp-image-3577 aligncenter" src="https://topreviewhostingasp.net/wp-content/uploads/2023/06/project-min.jpg" alt="" width="528" height="359" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/06/project-min.jpg 666w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/project-min-300x204.jpg 300w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/project-min-50x34.jpg 50w" sizes="(max-width: 528px) 100vw, 528px" /></p>
<p>After that a new window will pop up to choose the target framework (<strong>.Net 6.0</strong>) from the dropdown and make sure to select the Blazor server App and in the Advanced section &#8220;<em>Configure the Https</em>&#8221; is checked.</p>
<p><img loading="lazy" decoding="async" class="wp-image-3578 aligncenter" src="https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-setup-min.jpg" alt="" width="648" height="421" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-setup-min.jpg 850w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-setup-min-300x195.jpg 300w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-setup-min-768x499.jpg 768w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-setup-min-50x32.jpg 50w" sizes="(max-width: 648px) 100vw, 648px" /></p>
<h2>Blazor Wasm Standard Workflow</h2>
<p>If we now launch our application, access the Dev Tools window (F12), select the Application tab, and check the cache:</p>
<p><img loading="lazy" decoding="async" class="wp-image-3579 aligncenter" src="https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-2-min.jpg" alt="" width="692" height="457" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-2-min.jpg 850w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-2-min-300x198.jpg 300w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-2-min-768x507.jpg 768w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-2-min-50x33.jpg 50w" sizes="(max-width: 692px) 100vw, 692px" /></p>
<p>Although we are still on the Home page and have not navigated anywhere else, we can see that our BlazorWasmLazyLoading.dll file has been downloaded and cached, which is typical. However, it also suggests that all of the components in this DLL have been downloaded. Of course, for small apps like this one, this is not a problem. However, it could significantly speed up downloads for a more complex application. So let&#8217;s work out a way to prevent it.</p>
<h2>Updating the primary project with new packages</h2>
<p>We&#8217;re going to use the Syncfusion Libraries in this article to work with the idea of lazy loading, so create a new Razor class library project called Weather and empty it out except for the <code>_Imports.razor</code> file. Additionally, this project needs to be referenced from the main one.</p>
<p>From the right-click menu of the project, choose Manage NuGet Packages.<br />
Afterward, use the word Syncfusion. Blazor, locate, and set up the proper Syncfusion.Blazor. Blazor NuGet packages. In this location, Syncfusion has been installed. The program makes use of the NuGet packages Syncfusion and Blazor Buttons.Blazor.Calendars. Look at the illustration below.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3580" src="https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-3-min.jpg" alt="" width="850" height="222" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-3-min.jpg 850w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-3-min-300x78.jpg 300w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-3-min-768x201.jpg 768w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-3-min-50x13.jpg 50w" sizes="(max-width: 850px) 100vw, 850px" /></p>
<p>Configure the Syncfusion Blazor Service in Program.cs file as per the below code.</p>
<pre>using LazyLoading;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Syncfusion.Blazor;

var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add&lt;App&gt;("#app");
builder.RootComponents.Add&lt;HeadOutlet&gt;("head::after");

builder.Services.AddScoped(sp =&gt; new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddSyncfusionBlazor();

await builder.Build().RunAsync();</pre>
<h2>Implementation Lazy Loading</h2>
<p>In order to use Blazor WebAssembly&#8217;s Lazy Loading feature, we must first make a change to the main project file. Therefore, from the context menu, right-click on the BlazorWasmLazyLoading project and choose EditProjectFile:</p>
<p><strong>LazyLoading.csproj</strong></p>
<pre class="">&lt;Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"&gt;

  &lt;PropertyGroup&gt;
    &lt;TargetFramework&gt;net6.0&lt;/TargetFramework&gt;
    &lt;Nullable&gt;enable&lt;/Nullable&gt;
    &lt;ImplicitUsings&gt;enable&lt;/ImplicitUsings&gt;
  &lt;/PropertyGroup&gt;

  &lt;ItemGroup&gt;
    &lt;PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.1" /&gt;
    &lt;PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.1" PrivateAssets="all" /&gt;
    &lt;PackageReference Include="Syncfusion.Blazor.Buttons" Version="19.4.0.48" /&gt;
    &lt;PackageReference Include="Syncfusion.Blazor.Calendars" Version="19.4.0.48" /&gt;
    &lt;PackageReference Include="Syncfusion.Blazor.Charts" Version="19.4.0.48" /&gt;
    &lt;PackageReference Include="Syncfusion.Blazor.Data" Version="19.4.0.48" /&gt;
    &lt;PackageReference Include="Syncfusion.Blazor.DropDowns" Version="19.4.0.48" /&gt;
    &lt;PackageReference Include="Syncfusion.Blazor.Grid" Version="19.4.0.48" /&gt;
    &lt;PackageReference Include="Syncfusion.Blazor.Lists" Version="19.4.0.48" /&gt;
    &lt;PackageReference Include="Syncfusion.Blazor.Navigations" Version="19.4.0.48" /&gt;
    &lt;PackageReference Include="Syncfusion.Blazor.Notifications" Version="19.4.0.48" /&gt;
    &lt;PackageReference Include="Syncfusion.Blazor.Popups" Version="19.4.0.48" /&gt;
    &lt;PackageReference Include="Syncfusion.Blazor.Spinner" Version="19.4.0.48" /&gt;
    &lt;PackageReference Include="Syncfusion.Blazor.SplitButtons" Version="19.4.0.48" /&gt;
  &lt;/ItemGroup&gt;
        &lt;ItemGroup&gt;
                 &lt;BlazorWebAssemblyLazyLoad Include="Syncfusion.Blazor.Buttons.dll" /&gt;
                 &lt;BlazorWebAssemblyLazyLoad Include="Syncfusion.Blazor.Calendars.dll" /&gt;
                 &lt;BlazorWebAssemblyLazyLoad Include="Syncfusion.Blazor.Charts.dll" /&gt;
                 &lt;BlazorWebAssemblyLazyLoad Include="Syncfusion.Blazor.Data.dll" /&gt;
                 &lt;BlazorWebAssemblyLazyLoad Include="Syncfusion.Blazor.DropDowns.dll" /&gt;
                 &lt;BlazorWebAssemblyLazyLoad Include="Syncfusion.Blazor.Grids.dll" /&gt;
                 &lt;BlazorWebAssemblyLazyLoad Include="Syncfusion.Blazor.Lists.dll" /&gt;
                 &lt;BlazorWebAssemblyLazyLoad Include="Syncfusion.Blazor.Navigations.dll" /&gt;
                 &lt;BlazorWebAssemblyLazyLoad Include="Syncfusion.Blazor.Notifications.dll" /&gt;
                 &lt;BlazorWebAssemblyLazyLoad Include="Syncfusion.Blazor.Popups.dll" /&gt;
                 &lt;BlazorWebAssemblyLazyLoad Include="Syncfusion.Blazor.Spinner.dll" /&gt;
                 &lt;BlazorWebAssemblyLazyLoad Include="Syncfusion.Blazor.SplitButtons.dll" /&gt;
        &lt;/ItemGroup&gt;
        &lt;ItemGroup&gt;
          &lt;ProjectReference Include="..\Sample\Sample.csproj" /&gt;
        &lt;/ItemGroup&gt;
        &lt;ItemGroup&gt;
                &lt;BlazorWebAssemblyLazyLoad Include="Sample.dll" /&gt;
        &lt;/ItemGroup&gt;
&lt;/Project&gt;</pre>
<h2>Modifying App.razor File to Load the Required DLL</h2>
<p>We import the required utilizing directives before injecting the AssemblyLoader to load our assembly. The OnNavigateAsync event callback in the Router component is then given the OnNavigateAsync method. The OnNavigateAsync event callback is invoked just before switching to a new page. The AdditionalAssemblies property is also set to true. This attribute instructs our program to use additional assemblies to search for components that match the correct URIs.</p>
<p>In the @code section, we create the _lazyLoadedAssemblies private list of assemblies and the OnNavigateAsync method with the NavigationContext parameter. We check the currently required route inside the procedure using the context argument. If the fetch data route—the route of our FetchData component—matches, we use the LoadAssembliesAsync method to load the assemblies.</p>
<pre class="lang:default decode:true ">@using System.Reflection;
@using Microsoft.AspNetCore.Components.Routing;
@using Microsoft.AspNetCore.Components.WebAssembly.Services;
@inject LazyAssemblyLoader assemblyLoader;
&lt;Router AppAssembly="@typeof(App).Assembly" PreferExactMatches="@true" AdditionalAssemblies="@lazyLoadedAssemblies" OnNavigateAsync="@OnNavigateAsync"&gt;
    &lt;Found Context="routeData"&gt;
        &lt;RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" /&gt;
        &lt;FocusOnNavigate RouteData="@routeData" Selector="h1" /&gt;
    &lt;/Found&gt;
    &lt;NotFound&gt;
        &lt;PageTitle&gt;Not found&lt;/PageTitle&gt;
        &lt;LayoutView Layout="@typeof(MainLayout)"&gt;
            &lt;p role="alert"&gt;Sorry, there's nothing at this address.&lt;/p&gt;
        &lt;/LayoutView&gt;
    &lt;/NotFound&gt;
&lt;/Router&gt;

@code {
    private List&lt;Assembly&gt; lazyLoadedAssemblies = new List&lt;Assembly&gt;();
    private async Task OnNavigateAsync(NavigationContext args)
    {
        try
        {
            if (args.Path.StartsWith("fetchdata"))
            {
                var assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Sample.dll" });
                assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.Buttons.dll" });
                assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.Charts.dll" });
                assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.Data.dll" });
                assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.DropDowns.dll" });
                assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.Grid.dll" });
                lazyLoadedAssemblies.AddRange(assemblies);
            }
            if(args.Path.StartsWith("counter"))
            {
                var assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.Calendars.dll" });
                assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.Buttons.dll" });
                assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.Lists.dll" });
                assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.Navigations.dll" });
                assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.Notifications.dll" });
                assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.Popups.dll" });
                assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.Spinner.dll" });
                assemblies = await assemblyLoader.LoadAssembliesAsync(new[] { "Syncfusion.Blazor.SplitButtons.dll" });
                lazyLoadedAssemblies.AddRange(assemblies);
            }
        }
        catch (Exception ex)
        {

        }
    }
}</pre>
<p>Keep in mind that we won&#8217;t be able to locate the downloaded Sample.dll if we launch the app and search the cache. However, if we visit the FetchData page and the counter page, we can see the content of each page as well as the dependencies that have been downloaded.</p>
<p><img loading="lazy" decoding="async" class="wp-image-3581 aligncenter" src="https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-4-min.jpg" alt="" width="773" height="388" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-4-min.jpg 850w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-4-min-300x151.jpg 300w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-4-min-768x386.jpg 768w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-4-min-50x25.jpg 50w" sizes="(max-width: 773px) 100vw, 773px" /></p>
<p><strong>Counter page</strong></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3582" src="https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-5-min.jpg" alt="" width="850" height="427" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-5-min.jpg 850w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-5-min-300x151.jpg 300w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-5-min-768x386.jpg 768w, https://topreviewhostingasp.net/wp-content/uploads/2023/06/blazor-5-min-50x25.jpg 50w" sizes="(max-width: 850px) 100vw, 850px" /></p>
<h2>Conclusion</h2>
<p>Currently, we are aware of how to load various dependencies solely when necessary using Blazor WebAssembly&#8217;s lazy loading feature. As was already mentioned, this is a great feature because it speeds up the loading of our application.</p>
<p>All there is to it is that!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://topreviewhostingasp.net/implement-lazyloading-increase-blazor-website-performance/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
