Soenneker.Blazor.Utils.ModuleImport 2.1.484

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Blazor.Utils.ModuleImport --version 2.1.484                
NuGet\Install-Package Soenneker.Blazor.Utils.ModuleImport -Version 2.1.484                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Blazor.Utils.ModuleImport" Version="2.1.484" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Blazor.Utils.ModuleImport --version 2.1.484                
#r "nuget: Soenneker.Blazor.Utils.ModuleImport, 2.1.484"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Soenneker.Blazor.Utils.ModuleImport as a Cake Addin
#addin nuget:?package=Soenneker.Blazor.Utils.ModuleImport&version=2.1.484

// Install Soenneker.Blazor.Utils.ModuleImport as a Cake Tool
#tool nuget:?package=Soenneker.Blazor.Utils.ModuleImport&version=2.1.484                

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Blazor.Utils.ModuleImport

A Blazor utility library assisting with asynchronous module loading

This library simplifies the process of loading JavaScript modules and provides methods for waiting until a module is loaded and disposing of modules when they are no longer needed.

Features

  • Import JavaScript modules dynamically.
  • Wait until a module is fully loaded.
  • Dispose of JavaScript modules when they are no longer needed.
  • Singleton pattern to ensure that each module is loaded only once.

Installation

To install, add the package to your Blazor project using the .NET CLI:

dotnet add package Soenneker.Blazor.Utils.ModuleImport

Register it in DI:

builder.Services.AddModuleImportUtil();

Example

Here's an example of how to use the ModuleImportUtil in a Blazor component:

@page "/example"
@inject IModuleImportUtil ModuleImportUtil
@implements IAsyncDisposable

<h3>Module Import Example</h3>

<button @onclick="LoadModule">Load Module</button>

@code {
    private async Task LoadModule()
    {
        var module = await ModuleImportUtil.Import("exampleModule");
        await ModuleImportUtil.WaitUntilLoaded("exampleModule");

        // Guaranteed that the module has been added to the DOM, and available at this point
    }

    public async ValueTask DisposeAsync()
    {
        await ModuleImportUtil.DisposeModule("exampleModule");
    }
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Blazor.Utils.ModuleImport:

Package Downloads
Soenneker.Blazor.Utils.ResourceLoader

A Blazor JavaScript interop for dynamically loading scripts, styles, and modules

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.512 344 10/15/2024
2.1.511 35 10/15/2024
2.1.510 30 10/15/2024
2.1.509 369 10/15/2024
2.1.508 32 10/15/2024
2.1.507 50 10/14/2024
2.1.506 43 10/14/2024
2.1.505 787 10/12/2024
2.1.504 164 10/12/2024
2.1.503 62 10/12/2024
2.1.502 200 10/12/2024
2.1.501 69 10/12/2024
2.1.500 280 10/12/2024
2.1.499 373 10/11/2024
2.1.498 60 10/11/2024
2.1.497 63 10/11/2024
2.1.496 353 10/11/2024
2.1.495 64 10/11/2024
2.1.494 628 10/9/2024
2.1.493 171 10/9/2024
2.1.492 168 10/9/2024
2.1.491 60 10/9/2024
2.1.490 378 10/9/2024
2.1.489 303 10/9/2024
2.1.488 64 10/9/2024
2.1.487 63 10/9/2024
2.1.486 155 10/9/2024
2.1.485 60 10/9/2024
2.1.484 180 10/8/2024
2.1.483 60 10/8/2024
2.1.482 64 10/8/2024
2.1.481 59 10/8/2024
2.1.480 538 10/8/2024
2.1.479 489 10/8/2024
2.1.478 67 10/8/2024
2.1.477 219 10/8/2024
2.1.476 63 10/8/2024
2.1.475 385 10/8/2024
2.1.474 67 10/8/2024
2.1.473 277 10/8/2024
2.1.472 65 10/8/2024
2.1.471 1,001 10/3/2024
2.1.470 146 10/3/2024
2.1.469 274 10/3/2024
2.1.468 56 10/3/2024
2.1.467 50 10/3/2024
2.1.466 45 10/3/2024
2.1.465 449 10/3/2024
2.1.464 58 10/3/2024
2.1.463 56 10/3/2024
2.1.462 174 10/3/2024
2.1.461 58 10/3/2024
2.1.460 169 10/3/2024
2.1.459 57 10/3/2024
2.1.458 877 10/2/2024
2.1.457 91 10/2/2024
2.1.456 172 10/2/2024
2.1.455 166 10/2/2024
2.1.454 60 10/2/2024
2.1.453 346 10/2/2024
2.1.452 55 10/2/2024
2.1.451 59 10/2/2024
2.1.450 311 10/2/2024
2.1.449 500 10/2/2024
2.1.448 245 10/1/2024
2.1.447 59 10/1/2024
2.1.446 58 10/1/2024
2.1.445 388 10/1/2024
2.1.444 59 10/1/2024
2.1.443 192 10/1/2024
2.1.442 392 10/1/2024
2.1.441 60 10/1/2024
2.1.440 57 10/1/2024
2.1.439 380 10/1/2024
2.1.438 61 10/1/2024
2.1.437 427 9/29/2024
2.1.436 206 9/29/2024
2.1.435 60 9/29/2024
2.1.434 299 9/29/2024
2.1.433 68 9/29/2024
2.1.432 229 9/29/2024
2.1.431 62 9/29/2024
2.1.430 218 9/29/2024
2.1.429 68 9/29/2024
2.1.428 68 9/29/2024
2.1.427 358 9/29/2024
2.1.426 511 9/27/2024
2.1.425 205 9/27/2024
2.1.424 65 9/27/2024
2.1.423 224 9/27/2024
2.1.422 64 9/27/2024
2.1.421 186 9/27/2024
2.1.420 332 9/27/2024
2.1.419 219 9/27/2024
2.1.418 73 9/27/2024
2.1.417 449 9/27/2024
2.1.416 72 9/27/2024
2.1.415 65 9/27/2024
2.1.414 274 9/27/2024
2.1.413 69 9/27/2024
2.1.412 505 9/27/2024
2.1.411 162 9/27/2024
2.1.410 62 9/27/2024
2.1.409 191 9/26/2024
2.1.408 62 9/26/2024
2.1.407 259 9/26/2024
2.1.406 65 9/26/2024
2.1.405 228 9/26/2024
2.1.404 336 9/26/2024
2.1.403 145 9/26/2024
2.1.402 67 9/26/2024
2.1.401 64 9/26/2024
2.1.400 183 9/26/2024
2.1.399 64 9/26/2024
2.1.398 67 9/26/2024
2.1.397 435 9/26/2024
2.1.395 245 9/26/2024
2.1.394 340 9/26/2024
2.1.393 70 9/26/2024
2.1.392 166 9/26/2024
2.1.391 63 9/26/2024
2.1.390 748 9/23/2024
2.1.389 172 9/23/2024
2.1.388 98 9/23/2024
2.1.387 177 9/23/2024
2.1.386 68 9/23/2024
2.1.385 207 9/23/2024
2.1.384 263 9/23/2024
2.1.383 73 9/23/2024
2.1.382 194 9/23/2024
2.1.381 71 9/23/2024
2.1.380 169 9/23/2024
2.1.379 66 9/23/2024
2.1.378 74 9/23/2024
2.1.377 66 9/23/2024
2.1.376 449 9/23/2024
2.1.375 67 9/23/2024
2.1.374 460 9/23/2024
2.1.373 232 9/23/2024
2.1.372 68 9/23/2024
2.1.371 496 9/23/2024
2.1.370 66 9/23/2024
2.1.369 115 9/23/2024
2.1.368 59 9/23/2024
2.1.367 329 9/23/2024
2.1.366 67 9/23/2024
2.1.365 222 9/23/2024
2.1.364 151 9/23/2024
2.1.363 66 9/22/2024
2.1.362 630 9/18/2024
2.1.361 77 9/18/2024
2.1.360 71 9/18/2024
2.1.359 186 9/18/2024
2.1.358 69 9/18/2024
2.1.357 165 9/18/2024
2.1.356 64 9/18/2024
2.1.355 74 9/18/2024
2.1.354 62 9/18/2024
2.1.353 70 9/18/2024
2.1.352 547 9/18/2024
2.1.351 68 9/18/2024
2.1.350 232 9/17/2024
2.1.349 71 9/17/2024
2.1.348 132 9/17/2024
2.1.347 99 9/17/2024
2.1.346 175 9/17/2024
2.1.345 72 9/17/2024
2.1.344 214 9/17/2024
2.1.343 75 9/17/2024
2.1.342 74 9/17/2024
2.1.341 237 9/17/2024
2.1.340 64 9/17/2024
2.1.339 82 9/17/2024
2.1.338 238 9/17/2024
2.1.337 60 9/17/2024
2.1.336 257 9/17/2024
2.1.335 232 9/17/2024
2.1.334 56 9/17/2024
2.1.333 69 9/17/2024
2.1.332 256 9/17/2024
2.1.331 139 9/17/2024
2.1.330 174 9/17/2024
2.1.329 78 9/17/2024
2.1.328 71 9/17/2024
2.1.327 788 9/16/2024
2.1.326 265 9/16/2024
2.1.325 85 9/16/2024
2.1.324 83 9/16/2024
2.1.323 283 9/16/2024
2.1.321 913 9/12/2024
2.1.320 82 9/12/2024
2.1.319 223 9/12/2024
2.1.318 87 9/12/2024
2.1.317 72 9/12/2024
2.1.316 81 9/12/2024
2.1.315 258 9/12/2024
2.1.314 344 9/12/2024
2.1.313 91 9/12/2024
2.1.312 246 9/12/2024
2.1.311 98 9/12/2024
2.1.310 235 9/12/2024
2.1.309 89 9/12/2024
2.1.308 269 9/11/2024
2.1.307 91 9/11/2024
2.1.306 246 9/11/2024
2.1.305 92 9/11/2024
2.1.304 217 9/11/2024
2.1.303 96 9/11/2024
2.1.302 77 9/11/2024
2.1.301 436 9/11/2024
2.1.300 75 9/11/2024
2.1.299 74 9/11/2024
2.1.298 348 9/11/2024
2.1.297 93 9/11/2024
2.1.296 95 9/11/2024
2.1.295 93 9/11/2024
2.1.294 78 9/11/2024
2.1.293 618 9/11/2024
2.1.292 89 9/11/2024
2.1.291 652 9/10/2024
2.1.290 97 9/10/2024
2.1.289 181 9/10/2024
2.1.287 594 9/10/2024
2.1.286 92 9/10/2024
2.1.285 91 9/10/2024
2.1.284 91 9/10/2024
2.1.283 257 9/10/2024
2.1.282 86 9/10/2024
2.1.281 86 9/10/2024
2.1.280 546 9/10/2024
2.1.277 320 9/10/2024
2.1.276 79 9/9/2024
2.1.275 161 9/9/2024
2.1.274 81 9/9/2024
2.1.273 343 9/9/2024
2.1.272 82 9/9/2024
2.1.271 86 9/9/2024
2.1.270 92 9/9/2024
2.1.269 78 9/9/2024
2.1.267 84 9/9/2024
2.1.266 82 9/9/2024
2.1.265 937 9/9/2024
2.1.264 82 9/9/2024
2.1.263 263 9/9/2024
2.1.262 677 9/7/2024
2.1.261 79 9/7/2024
2.1.260 294 9/7/2024
2.1.259 85 9/7/2024
2.1.258 325 9/7/2024
2.1.257 78 9/7/2024
2.1.256 91 9/6/2024
2.1.255 360 9/6/2024
2.1.254 180 9/6/2024
2.1.253 78 9/6/2024
2.1.252 273 9/6/2024
2.1.251 345 9/6/2024
2.1.250 82 9/6/2024
2.1.249 230 9/6/2024
2.1.248 81 9/6/2024
2.1.247 80 9/5/2024
2.1.246 68 9/5/2024
2.1.245 416 9/5/2024
2.1.244 201 9/5/2024
2.1.243 86 9/5/2024
2.1.242 325 9/5/2024
2.1.241 69 9/5/2024
2.1.240 203 9/5/2024
2.1.239 84 9/5/2024
2.1.238 87 9/5/2024
2.1.237 93 9/5/2024
2.1.236 77 9/5/2024
2.1.235 656 9/5/2024
2.1.234 190 9/5/2024
2.1.233 87 9/5/2024
2.1.232 96 9/4/2024
2.1.231 74 9/4/2024
2.1.230 690 9/4/2024
2.1.229 336 9/4/2024
2.1.228 210 9/4/2024
2.1.227 197 9/4/2024
2.1.226 198 9/3/2024
2.1.225 86 9/3/2024
2.1.224 80 9/3/2024
2.1.223 99 9/3/2024
2.1.222 297 9/3/2024
2.1.221 282 9/3/2024
2.1.220 81 9/3/2024
2.1.219 89 9/3/2024
2.1.218 73 9/3/2024
2.1.217 314 9/3/2024
2.1.216 102 9/3/2024
2.1.215 68 9/3/2024
2.1.214 876 8/29/2024
2.1.213 77 8/29/2024
2.1.212 62 8/29/2024
2.1.211 188 8/29/2024
2.1.210 73 8/29/2024
2.1.209 83 8/29/2024
2.1.208 78 8/29/2024
2.1.207 700 8/26/2024
2.1.206 191 8/26/2024
2.1.205 92 8/26/2024
2.1.204 203 8/26/2024
2.1.203 90 8/26/2024
2.1.202 86 8/26/2024
2.1.201 517 8/26/2024
2.1.200 409 8/21/2024
2.1.199 115 8/21/2024
2.1.198 222 8/21/2024
2.1.197 296 8/21/2024
2.1.196 98 8/21/2024
2.1.195 93 8/21/2024
2.1.194 93 8/21/2024
2.1.193 351 8/21/2024
2.1.192 116 8/21/2024
2.1.191 281 8/21/2024
2.1.190 92 8/21/2024
2.1.189 112 8/20/2024
2.1.188 97 8/20/2024
2.1.187 345 8/20/2024
2.1.186 369 8/20/2024
2.1.185 113 8/20/2024
2.1.184 95 8/20/2024
2.1.183 367 8/20/2024
2.1.182 100 8/20/2024
2.1.181 109 8/20/2024
2.1.180 109 8/20/2024
2.1.179 106 8/20/2024
2.1.178 105 8/20/2024
2.1.177 749 8/19/2024
2.1.176 420 8/15/2024
2.1.175 175 8/15/2024
2.1.174 197 8/15/2024
2.1.173 204 8/15/2024
2.1.172 176 8/15/2024
2.1.171 99 8/15/2024
2.1.170 270 8/15/2024
2.1.169 102 8/15/2024
2.1.168 648 8/14/2024
2.1.167 274 8/14/2024
2.1.166 97 8/14/2024
2.1.165 101 8/14/2024
2.1.164 99 8/14/2024
2.1.163 247 8/13/2024
2.1.162 492 8/13/2024
2.1.161 423 8/7/2024
2.1.160 86 8/7/2024
2.1.159 232 8/7/2024
2.1.158 176 8/7/2024
2.1.157 81 8/7/2024
2.1.156 85 8/7/2024
2.1.155 88 8/7/2024
2.1.154 224 8/6/2024
2.1.153 93 8/6/2024
2.1.152 204 8/6/2024
2.1.151 74 8/6/2024
2.1.150 657 8/1/2024
2.1.149 230 8/1/2024
2.1.148 76 8/1/2024
2.1.147 201 8/1/2024
2.1.146 161 8/1/2024
2.1.145 90 8/1/2024
2.1.144 291 8/1/2024
2.1.143 77 8/1/2024
2.1.142 121 8/1/2024
2.1.141 74 8/1/2024
2.1.140 595 7/25/2024
2.1.139 207 7/25/2024
2.1.138 103 7/25/2024
2.1.137 130 7/25/2024
2.1.136 147 7/25/2024
2.1.135 149 7/25/2024
2.1.134 123 7/25/2024
2.1.133 183 7/25/2024
2.1.132 79 7/25/2024
2.1.131 232 7/25/2024
2.1.130 47 7/25/2024
2.1.129 133 7/24/2024
2.1.128 64 7/24/2024
2.1.127 51 7/24/2024
2.1.126 130 7/24/2024
2.1.125 38 7/24/2024
2.1.124 992 7/20/2024
2.1.123 126 7/20/2024
2.1.122 124 7/20/2024
2.1.121 87 7/20/2024
2.1.120 131 7/20/2024
2.1.119 91 7/20/2024
2.1.118 169 7/20/2024
2.1.117 78 7/20/2024
2.1.116 624 7/17/2024
2.1.115 156 7/17/2024
2.1.114 342 7/14/2024
2.1.113 83 7/14/2024
2.1.112 237 7/14/2024
2.1.111 89 7/14/2024
2.1.110 90 7/14/2024
2.1.109 257 7/14/2024
2.1.108 84 7/14/2024
2.1.107 85 7/14/2024
2.1.106 87 7/14/2024
2.1.105 311 7/14/2024
2.1.104 82 7/14/2024
2.1.103 535 7/10/2024
2.1.102 84 7/10/2024
2.1.101 73 7/10/2024
2.1.100 92 7/10/2024
2.1.99 71 7/10/2024
2.1.98 77 7/10/2024
2.1.97 89 7/10/2024
2.1.96 88 7/10/2024
2.1.95 72 7/10/2024
2.1.94 79 7/10/2024
2.1.93 666 7/10/2024
2.1.92 81 7/10/2024
2.1.91 192 7/10/2024
2.1.90 83 7/10/2024
2.1.89 80 7/10/2024
2.1.88 146 7/10/2024
2.1.87 79 7/10/2024
2.1.86 141 7/10/2024
2.1.85 82 7/10/2024
2.1.84 187 7/10/2024
2.1.83 75 7/10/2024
2.1.82 159 7/10/2024
2.1.81 91 7/10/2024
2.1.79 154 7/10/2024
2.1.78 155 7/10/2024
2.1.77 91 7/10/2024
2.1.76 176 7/9/2024
2.1.73 149 7/9/2024
2.1.72 73 7/9/2024
2.1.71 91 7/9/2024
2.1.70 920 7/9/2024
2.1.69 77 7/9/2024
2.1.68 73 7/9/2024
2.1.67 71 7/9/2024
2.1.66 1,953 7/9/2024
2.1.65 87 7/9/2024
2.1.64 369 7/9/2024
2.1.63 82 7/9/2024
2.1.62 86 7/9/2024
2.1.61 90 7/9/2024
2.1.60 434 7/9/2024
2.1.59 92 7/9/2024
2.1.57 79 7/8/2024
2.1.56 101 7/8/2024
2.1.55 95 7/8/2024
2.1.54 462 7/8/2024
2.1.53 84 7/8/2024
2.1.52 215 7/8/2024
2.1.51 97 7/8/2024
2.1.50 442 7/8/2024
2.1.49 131 7/8/2024
2.1.48 198 7/8/2024
2.1.47 87 7/8/2024
2.1.46 345 7/8/2024
2.1.45 99 7/7/2024
2.1.44 93 7/7/2024
2.1.43 344 7/7/2024
2.1.42 96 7/7/2024
2.1.41 95 7/7/2024
2.1.40 153 7/7/2024
2.1.39 192 7/7/2024
2.1.38 105 7/7/2024
2.1.37 365 7/7/2024
2.1.36 215 7/7/2024
2.1.35 380 7/5/2024
2.1.34 473 7/3/2024
2.1.33 204 7/3/2024
2.1.32 190 7/3/2024
2.1.31 193 7/3/2024
2.1.30 178 7/3/2024
2.1.29 221 7/3/2024
2.1.28 102 7/3/2024
2.1.27 100 7/3/2024
2.1.26 99 7/3/2024
2.1.25 210 7/3/2024
2.1.24 175 7/3/2024
2.1.23 104 7/3/2024
2.1.22 370 7/3/2024
2.1.21 101 7/3/2024
2.1.20 373 7/3/2024
2.1.19 105 7/3/2024
2.1.18 421 7/2/2024
2.1.17 287 6/30/2024
2.1.16 227 6/30/2024
2.1.15 122 6/30/2024
2.1.14 112 6/30/2024
2.1.13 97 6/30/2024
2.1.12 249 6/30/2024
2.1.11 375 6/28/2024
2.1.10 109 6/28/2024
2.1.9 202 6/28/2024
2.1.8 132 6/28/2024
2.1.7 202 6/27/2024
2.1.6 154 6/27/2024
2.1.5 102 6/27/2024
2.1.4 452 6/27/2024
2.1.3 494 6/23/2024
2.1.2 106 6/23/2024
2.1.1 114 6/23/2024