Soenneker.Blazor.Utils.ModuleImport 2.1.437

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.437                
NuGet\Install-Package Soenneker.Blazor.Utils.ModuleImport -Version 2.1.437                
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.437" />                
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.437                
#r "nuget: Soenneker.Blazor.Utils.ModuleImport, 2.1.437"                
#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.437

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

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.562 105 11/1/2024
2.1.561 114 11/1/2024
2.1.560 26 11/1/2024
2.1.559 93 11/1/2024
2.1.558 27 11/1/2024
2.1.557 31 11/1/2024
2.1.556 27 11/1/2024
2.1.555 143 11/1/2024
2.1.554 443 10/29/2024
2.1.553 101 10/29/2024
2.1.552 32 10/29/2024
2.1.551 105 10/29/2024
2.1.550 30 10/29/2024
2.1.549 412 10/29/2024
2.1.547 208 10/29/2024
2.1.546 33 10/29/2024
2.1.545 34 10/29/2024
2.1.544 327 10/29/2024
2.1.543 31 10/29/2024
2.1.542 34 10/29/2024
2.1.541 187 10/29/2024
2.1.540 573 10/29/2024
2.1.539 34 10/29/2024
2.1.538 435 10/29/2024
2.1.537 40 10/28/2024
2.1.536 42 10/28/2024
2.1.535 499 10/28/2024
2.1.534 635 10/26/2024
2.1.533 145 10/26/2024
2.1.532 62 10/26/2024
2.1.531 190 10/26/2024
2.1.530 67 10/26/2024
2.1.529 902 10/22/2024
2.1.528 246 10/22/2024
2.1.527 56 10/22/2024
2.1.526 69 10/22/2024
2.1.525 288 10/22/2024
2.1.524 63 10/22/2024
2.1.523 500 10/22/2024
2.1.522 65 10/22/2024
2.1.521 62 10/22/2024
2.1.520 399 10/22/2024
2.1.519 1,358 10/18/2024
2.1.518 102 10/18/2024
2.1.517 95 10/18/2024
2.1.516 400 10/17/2024
2.1.515 63 10/17/2024
2.1.514 325 10/17/2024
2.1.513 70 10/17/2024
2.1.512 1,002 10/15/2024
2.1.511 73 10/15/2024
2.1.510 70 10/15/2024
2.1.509 481 10/15/2024
2.1.508 61 10/15/2024
2.1.507 78 10/14/2024
2.1.506 71 10/14/2024
2.1.505 1,001 10/12/2024
2.1.504 172 10/12/2024
2.1.503 70 10/12/2024
2.1.502 208 10/12/2024
2.1.501 77 10/12/2024
2.1.500 292 10/12/2024
2.1.499 385 10/11/2024
2.1.498 68 10/11/2024
2.1.497 72 10/11/2024
2.1.496 361 10/11/2024
2.1.495 72 10/11/2024
2.1.494 685 10/9/2024
2.1.493 178 10/9/2024
2.1.492 175 10/9/2024
2.1.491 67 10/9/2024
2.1.490 390 10/9/2024
2.1.489 310 10/9/2024
2.1.488 71 10/9/2024
2.1.487 70 10/9/2024
2.1.486 162 10/9/2024
2.1.485 67 10/9/2024
2.1.484 187 10/8/2024
2.1.483 67 10/8/2024
2.1.482 71 10/8/2024
2.1.481 66 10/8/2024
2.1.480 545 10/8/2024
2.1.479 502 10/8/2024
2.1.478 74 10/8/2024
2.1.477 226 10/8/2024
2.1.476 70 10/8/2024
2.1.475 392 10/8/2024
2.1.474 74 10/8/2024
2.1.473 284 10/8/2024
2.1.472 71 10/8/2024
2.1.471 1,012 10/3/2024
2.1.470 156 10/3/2024
2.1.469 282 10/3/2024
2.1.468 64 10/3/2024
2.1.467 63 10/3/2024
2.1.466 55 10/3/2024
2.1.465 457 10/3/2024
2.1.464 66 10/3/2024
2.1.463 63 10/3/2024
2.1.462 181 10/3/2024
2.1.461 66 10/3/2024
2.1.460 177 10/3/2024
2.1.459 64 10/3/2024
2.1.458 884 10/2/2024
2.1.457 98 10/2/2024
2.1.456 179 10/2/2024
2.1.455 172 10/2/2024
2.1.454 67 10/2/2024
2.1.453 354 10/2/2024
2.1.452 62 10/2/2024
2.1.451 66 10/2/2024
2.1.450 319 10/2/2024
2.1.449 508 10/2/2024
2.1.448 253 10/1/2024
2.1.447 67 10/1/2024
2.1.446 66 10/1/2024
2.1.445 396 10/1/2024
2.1.444 66 10/1/2024
2.1.443 199 10/1/2024
2.1.442 400 10/1/2024
2.1.441 68 10/1/2024
2.1.440 65 10/1/2024
2.1.439 388 10/1/2024
2.1.438 69 10/1/2024
2.1.437 433 9/29/2024
2.1.436 212 9/29/2024
2.1.435 66 9/29/2024
2.1.434 305 9/29/2024
2.1.433 74 9/29/2024
2.1.432 235 9/29/2024
2.1.431 68 9/29/2024
2.1.430 224 9/29/2024
2.1.429 74 9/29/2024
2.1.428 74 9/29/2024
2.1.427 364 9/29/2024
2.1.426 517 9/27/2024
2.1.425 211 9/27/2024
2.1.424 71 9/27/2024
2.1.423 230 9/27/2024
2.1.422 70 9/27/2024
2.1.421 192 9/27/2024
2.1.420 338 9/27/2024
2.1.419 225 9/27/2024
2.1.418 79 9/27/2024
2.1.417 455 9/27/2024
2.1.416 78 9/27/2024
2.1.415 71 9/27/2024
2.1.414 280 9/27/2024
2.1.413 75 9/27/2024
2.1.412 511 9/27/2024
2.1.411 168 9/27/2024
2.1.410 68 9/27/2024
2.1.409 197 9/26/2024
2.1.408 68 9/26/2024
2.1.407 265 9/26/2024
2.1.406 71 9/26/2024
2.1.405 234 9/26/2024
2.1.404 342 9/26/2024
2.1.403 151 9/26/2024
2.1.402 73 9/26/2024
2.1.401 70 9/26/2024
2.1.400 189 9/26/2024
2.1.399 71 9/26/2024
2.1.398 74 9/26/2024
2.1.397 441 9/26/2024
2.1.395 253 9/26/2024
2.1.394 347 9/26/2024
2.1.393 76 9/26/2024
2.1.392 172 9/26/2024
2.1.391 69 9/26/2024
2.1.390 779 9/23/2024
2.1.389 178 9/23/2024
2.1.388 104 9/23/2024
2.1.387 183 9/23/2024
2.1.386 74 9/23/2024
2.1.385 213 9/23/2024
2.1.384 269 9/23/2024
2.1.383 79 9/23/2024
2.1.382 200 9/23/2024
2.1.381 77 9/23/2024
2.1.380 176 9/23/2024
2.1.379 72 9/23/2024
2.1.378 80 9/23/2024
2.1.377 72 9/23/2024
2.1.376 455 9/23/2024
2.1.375 73 9/23/2024
2.1.374 466 9/23/2024
2.1.373 238 9/23/2024
2.1.372 74 9/23/2024
2.1.371 502 9/23/2024
2.1.370 72 9/23/2024
2.1.369 121 9/23/2024
2.1.368 66 9/23/2024
2.1.367 336 9/23/2024
2.1.366 74 9/23/2024
2.1.365 229 9/23/2024
2.1.364 158 9/23/2024
2.1.363 73 9/22/2024
2.1.362 765 9/18/2024
2.1.361 83 9/18/2024
2.1.360 77 9/18/2024
2.1.359 192 9/18/2024
2.1.358 75 9/18/2024
2.1.357 171 9/18/2024
2.1.356 70 9/18/2024
2.1.355 84 9/18/2024
2.1.354 72 9/18/2024
2.1.353 80 9/18/2024
2.1.352 557 9/18/2024
2.1.351 78 9/18/2024
2.1.350 239 9/17/2024
2.1.349 81 9/17/2024
2.1.348 142 9/17/2024
2.1.347 110 9/17/2024
2.1.346 186 9/17/2024
2.1.345 83 9/17/2024
2.1.344 225 9/17/2024
2.1.343 87 9/17/2024
2.1.342 85 9/17/2024
2.1.341 248 9/17/2024
2.1.340 75 9/17/2024
2.1.339 93 9/17/2024
2.1.338 248 9/17/2024
2.1.337 70 9/17/2024
2.1.336 268 9/17/2024
2.1.335 243 9/17/2024
2.1.334 67 9/17/2024
2.1.333 80 9/17/2024
2.1.332 267 9/17/2024
2.1.331 146 9/17/2024
2.1.330 185 9/17/2024
2.1.329 89 9/17/2024
2.1.328 82 9/17/2024
2.1.327 794 9/16/2024
2.1.326 271 9/16/2024
2.1.325 91 9/16/2024
2.1.324 89 9/16/2024
2.1.323 289 9/16/2024
2.1.321 970 9/12/2024
2.1.320 88 9/12/2024
2.1.319 229 9/12/2024
2.1.318 93 9/12/2024
2.1.317 78 9/12/2024
2.1.316 87 9/12/2024
2.1.315 264 9/12/2024
2.1.314 350 9/12/2024
2.1.313 97 9/12/2024
2.1.312 252 9/12/2024
2.1.311 104 9/12/2024
2.1.310 241 9/12/2024
2.1.309 95 9/12/2024
2.1.308 275 9/11/2024
2.1.307 97 9/11/2024
2.1.306 252 9/11/2024
2.1.305 98 9/11/2024
2.1.304 223 9/11/2024
2.1.303 102 9/11/2024
2.1.302 83 9/11/2024
2.1.301 443 9/11/2024
2.1.300 81 9/11/2024
2.1.299 81 9/11/2024
2.1.298 355 9/11/2024
2.1.297 100 9/11/2024
2.1.296 102 9/11/2024
2.1.295 100 9/11/2024
2.1.294 85 9/11/2024
2.1.293 625 9/11/2024
2.1.292 96 9/11/2024
2.1.291 659 9/10/2024
2.1.290 104 9/10/2024
2.1.289 188 9/10/2024
2.1.287 603 9/10/2024
2.1.286 99 9/10/2024
2.1.285 98 9/10/2024
2.1.284 98 9/10/2024
2.1.283 265 9/10/2024
2.1.282 93 9/10/2024
2.1.281 93 9/10/2024
2.1.280 553 9/10/2024
2.1.277 327 9/10/2024
2.1.276 87 9/9/2024
2.1.275 168 9/9/2024
2.1.274 88 9/9/2024
2.1.273 350 9/9/2024
2.1.272 89 9/9/2024
2.1.271 93 9/9/2024
2.1.270 99 9/9/2024
2.1.269 85 9/9/2024
2.1.267 92 9/9/2024
2.1.266 89 9/9/2024
2.1.265 944 9/9/2024
2.1.264 89 9/9/2024
2.1.263 270 9/9/2024
2.1.262 685 9/7/2024
2.1.261 87 9/7/2024
2.1.260 302 9/7/2024
2.1.259 95 9/7/2024
2.1.258 333 9/7/2024
2.1.257 85 9/7/2024
2.1.256 98 9/6/2024
2.1.255 367 9/6/2024
2.1.254 187 9/6/2024
2.1.253 85 9/6/2024
2.1.252 281 9/6/2024
2.1.251 352 9/6/2024
2.1.250 89 9/6/2024
2.1.249 237 9/6/2024
2.1.248 88 9/6/2024
2.1.247 87 9/5/2024
2.1.246 75 9/5/2024
2.1.245 423 9/5/2024
2.1.244 208 9/5/2024
2.1.243 94 9/5/2024
2.1.242 332 9/5/2024
2.1.241 76 9/5/2024
2.1.240 210 9/5/2024
2.1.239 91 9/5/2024
2.1.238 94 9/5/2024
2.1.237 100 9/5/2024
2.1.236 84 9/5/2024
2.1.235 663 9/5/2024
2.1.234 197 9/5/2024
2.1.233 94 9/5/2024
2.1.232 103 9/4/2024
2.1.231 81 9/4/2024
2.1.230 697 9/4/2024
2.1.229 343 9/4/2024
2.1.228 217 9/4/2024
2.1.227 205 9/4/2024
2.1.226 205 9/3/2024
2.1.225 93 9/3/2024
2.1.224 87 9/3/2024
2.1.223 106 9/3/2024
2.1.222 303 9/3/2024
2.1.221 288 9/3/2024
2.1.220 87 9/3/2024
2.1.219 95 9/3/2024
2.1.218 79 9/3/2024
2.1.217 320 9/3/2024
2.1.216 108 9/3/2024
2.1.215 74 9/3/2024
2.1.214 879 8/29/2024
2.1.213 80 8/29/2024
2.1.212 65 8/29/2024
2.1.211 191 8/29/2024
2.1.210 76 8/29/2024
2.1.209 86 8/29/2024
2.1.208 81 8/29/2024
2.1.207 702 8/26/2024
2.1.206 193 8/26/2024
2.1.205 94 8/26/2024
2.1.204 205 8/26/2024
2.1.203 93 8/26/2024
2.1.202 89 8/26/2024
2.1.201 520 8/26/2024
2.1.200 411 8/21/2024
2.1.199 117 8/21/2024
2.1.198 224 8/21/2024
2.1.197 301 8/21/2024
2.1.196 104 8/21/2024
2.1.195 95 8/21/2024
2.1.194 95 8/21/2024
2.1.193 353 8/21/2024
2.1.192 122 8/21/2024
2.1.191 283 8/21/2024
2.1.190 94 8/21/2024
2.1.189 116 8/20/2024
2.1.188 99 8/20/2024
2.1.187 352 8/20/2024
2.1.186 371 8/20/2024
2.1.185 115 8/20/2024
2.1.184 97 8/20/2024
2.1.183 374 8/20/2024
2.1.182 102 8/20/2024
2.1.181 111 8/20/2024
2.1.180 111 8/20/2024
2.1.179 108 8/20/2024
2.1.178 107 8/20/2024
2.1.177 751 8/19/2024
2.1.176 422 8/15/2024
2.1.175 177 8/15/2024
2.1.174 199 8/15/2024
2.1.173 206 8/15/2024
2.1.172 178 8/15/2024
2.1.171 101 8/15/2024
2.1.170 272 8/15/2024
2.1.169 104 8/15/2024
2.1.168 650 8/14/2024
2.1.167 276 8/14/2024
2.1.166 99 8/14/2024
2.1.165 103 8/14/2024
2.1.164 101 8/14/2024
2.1.163 250 8/13/2024
2.1.162 495 8/13/2024
2.1.161 432 8/7/2024
2.1.160 89 8/7/2024
2.1.159 235 8/7/2024
2.1.158 179 8/7/2024
2.1.157 84 8/7/2024
2.1.156 88 8/7/2024
2.1.155 91 8/7/2024
2.1.154 227 8/6/2024
2.1.153 95 8/6/2024
2.1.152 207 8/6/2024
2.1.151 77 8/6/2024
2.1.150 659 8/1/2024
2.1.149 233 8/1/2024
2.1.148 79 8/1/2024
2.1.147 204 8/1/2024
2.1.146 162 8/1/2024
2.1.145 91 8/1/2024
2.1.144 293 8/1/2024
2.1.143 79 8/1/2024
2.1.142 122 8/1/2024
2.1.141 76 8/1/2024
2.1.140 604 7/25/2024
2.1.139 210 7/25/2024
2.1.138 106 7/25/2024
2.1.137 133 7/25/2024
2.1.136 150 7/25/2024
2.1.135 152 7/25/2024
2.1.134 126 7/25/2024
2.1.133 186 7/25/2024
2.1.132 82 7/25/2024
2.1.131 235 7/25/2024
2.1.130 50 7/25/2024
2.1.129 136 7/24/2024
2.1.128 67 7/24/2024
2.1.127 54 7/24/2024
2.1.126 133 7/24/2024
2.1.125 41 7/24/2024
2.1.124 995 7/20/2024
2.1.123 129 7/20/2024
2.1.122 127 7/20/2024
2.1.121 90 7/20/2024
2.1.120 134 7/20/2024
2.1.119 94 7/20/2024
2.1.118 172 7/20/2024
2.1.117 81 7/20/2024
2.1.116 626 7/17/2024
2.1.115 158 7/17/2024
2.1.114 344 7/14/2024
2.1.113 85 7/14/2024
2.1.112 239 7/14/2024
2.1.111 91 7/14/2024
2.1.110 92 7/14/2024
2.1.109 259 7/14/2024
2.1.108 86 7/14/2024
2.1.107 87 7/14/2024
2.1.106 89 7/14/2024
2.1.105 313 7/14/2024
2.1.104 84 7/14/2024
2.1.103 537 7/10/2024
2.1.102 86 7/10/2024
2.1.101 75 7/10/2024
2.1.100 94 7/10/2024
2.1.99 73 7/10/2024
2.1.98 79 7/10/2024
2.1.97 91 7/10/2024
2.1.96 90 7/10/2024
2.1.95 74 7/10/2024
2.1.94 81 7/10/2024
2.1.93 668 7/10/2024
2.1.92 83 7/10/2024
2.1.91 194 7/10/2024
2.1.90 85 7/10/2024
2.1.89 82 7/10/2024
2.1.88 148 7/10/2024
2.1.87 81 7/10/2024
2.1.86 142 7/10/2024
2.1.85 83 7/10/2024
2.1.84 189 7/10/2024
2.1.83 78 7/10/2024
2.1.82 161 7/10/2024
2.1.81 93 7/10/2024
2.1.79 155 7/10/2024
2.1.78 157 7/10/2024
2.1.77 93 7/10/2024
2.1.76 178 7/9/2024
2.1.73 151 7/9/2024
2.1.72 75 7/9/2024
2.1.71 93 7/9/2024
2.1.70 922 7/9/2024
2.1.69 79 7/9/2024
2.1.68 75 7/9/2024
2.1.67 73 7/9/2024
2.1.66 2,379 7/9/2024
2.1.65 89 7/9/2024
2.1.64 371 7/9/2024
2.1.63 84 7/9/2024
2.1.62 88 7/9/2024
2.1.61 92 7/9/2024
2.1.60 436 7/9/2024
2.1.59 94 7/9/2024
2.1.57 81 7/8/2024
2.1.56 103 7/8/2024
2.1.55 97 7/8/2024
2.1.54 464 7/8/2024
2.1.53 86 7/8/2024
2.1.52 217 7/8/2024
2.1.51 99 7/8/2024
2.1.50 444 7/8/2024
2.1.49 133 7/8/2024
2.1.48 200 7/8/2024
2.1.47 89 7/8/2024
2.1.46 347 7/8/2024
2.1.45 101 7/7/2024
2.1.44 95 7/7/2024
2.1.43 347 7/7/2024
2.1.42 98 7/7/2024
2.1.41 97 7/7/2024
2.1.40 155 7/7/2024
2.1.39 194 7/7/2024
2.1.38 107 7/7/2024
2.1.37 367 7/7/2024
2.1.36 217 7/7/2024
2.1.35 382 7/5/2024
2.1.34 475 7/3/2024
2.1.33 206 7/3/2024
2.1.32 191 7/3/2024
2.1.31 194 7/3/2024
2.1.30 179 7/3/2024
2.1.29 222 7/3/2024
2.1.28 103 7/3/2024
2.1.27 101 7/3/2024
2.1.26 100 7/3/2024
2.1.25 211 7/3/2024
2.1.24 176 7/3/2024
2.1.23 105 7/3/2024
2.1.22 371 7/3/2024
2.1.21 102 7/3/2024
2.1.20 374 7/3/2024
2.1.19 106 7/3/2024
2.1.18 422 7/2/2024
2.1.17 288 6/30/2024
2.1.16 230 6/30/2024
2.1.15 123 6/30/2024
2.1.14 113 6/30/2024
2.1.13 98 6/30/2024
2.1.12 250 6/30/2024
2.1.11 376 6/28/2024
2.1.10 110 6/28/2024
2.1.9 203 6/28/2024
2.1.8 133 6/28/2024
2.1.7 203 6/27/2024
2.1.6 155 6/27/2024
2.1.5 103 6/27/2024
2.1.4 453 6/27/2024
2.1.3 495 6/23/2024
2.1.2 107 6/23/2024
2.1.1 115 6/23/2024