Soenneker.Blazor.Utils.ModuleImport 2.1.503

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

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

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.554 262 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 397 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 318 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 561 10/29/2024
2.1.539 34 10/29/2024
2.1.538 423 10/29/2024
2.1.537 40 10/28/2024
2.1.536 42 10/28/2024
2.1.535 484 10/28/2024
2.1.534 600 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 848 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,327 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,000 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 70 9/26/2024
2.1.398 73 9/26/2024
2.1.397 441 9/26/2024
2.1.395 252 9/26/2024
2.1.394 346 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 335 9/23/2024
2.1.366 73 9/23/2024
2.1.365 229 9/23/2024
2.1.364 157 9/23/2024
2.1.363 72 9/22/2024
2.1.362 764 9/18/2024
2.1.361 82 9/18/2024
2.1.360 76 9/18/2024
2.1.359 191 9/18/2024
2.1.358 74 9/18/2024
2.1.357 170 9/18/2024
2.1.356 69 9/18/2024
2.1.355 83 9/18/2024
2.1.354 71 9/18/2024
2.1.353 79 9/18/2024
2.1.352 556 9/18/2024
2.1.351 77 9/18/2024
2.1.350 238 9/17/2024
2.1.349 80 9/17/2024
2.1.348 141 9/17/2024
2.1.347 109 9/17/2024
2.1.346 185 9/17/2024
2.1.345 82 9/17/2024
2.1.344 224 9/17/2024
2.1.343 86 9/17/2024
2.1.342 84 9/17/2024
2.1.341 247 9/17/2024
2.1.340 74 9/17/2024
2.1.339 92 9/17/2024
2.1.338 247 9/17/2024
2.1.337 69 9/17/2024
2.1.336 267 9/17/2024
2.1.335 242 9/17/2024
2.1.334 66 9/17/2024
2.1.333 79 9/17/2024
2.1.332 266 9/17/2024
2.1.331 145 9/17/2024
2.1.330 184 9/17/2024
2.1.329 88 9/17/2024
2.1.328 81 9/17/2024
2.1.327 793 9/16/2024
2.1.326 270 9/16/2024
2.1.325 90 9/16/2024
2.1.324 88 9/16/2024
2.1.323 288 9/16/2024
2.1.321 967 9/12/2024
2.1.320 87 9/12/2024
2.1.319 228 9/12/2024
2.1.318 92 9/12/2024
2.1.317 77 9/12/2024
2.1.316 86 9/12/2024
2.1.315 263 9/12/2024
2.1.314 349 9/12/2024
2.1.313 96 9/12/2024
2.1.312 251 9/12/2024
2.1.311 103 9/12/2024
2.1.310 240 9/12/2024
2.1.309 94 9/12/2024
2.1.308 274 9/11/2024
2.1.307 96 9/11/2024
2.1.306 251 9/11/2024
2.1.305 97 9/11/2024
2.1.304 222 9/11/2024
2.1.303 101 9/11/2024
2.1.302 82 9/11/2024
2.1.301 442 9/11/2024
2.1.300 80 9/11/2024
2.1.299 80 9/11/2024
2.1.298 354 9/11/2024
2.1.297 99 9/11/2024
2.1.296 101 9/11/2024
2.1.295 99 9/11/2024
2.1.294 84 9/11/2024
2.1.293 624 9/11/2024
2.1.292 95 9/11/2024
2.1.291 658 9/10/2024
2.1.290 103 9/10/2024
2.1.289 187 9/10/2024
2.1.287 602 9/10/2024
2.1.286 98 9/10/2024
2.1.285 97 9/10/2024
2.1.284 97 9/10/2024
2.1.283 264 9/10/2024
2.1.282 92 9/10/2024
2.1.281 92 9/10/2024
2.1.280 552 9/10/2024
2.1.277 326 9/10/2024
2.1.276 86 9/9/2024
2.1.275 167 9/9/2024
2.1.274 87 9/9/2024
2.1.273 349 9/9/2024
2.1.272 88 9/9/2024
2.1.271 92 9/9/2024
2.1.270 98 9/9/2024
2.1.269 84 9/9/2024
2.1.267 91 9/9/2024
2.1.266 88 9/9/2024
2.1.265 943 9/9/2024
2.1.264 88 9/9/2024
2.1.263 269 9/9/2024
2.1.262 684 9/7/2024
2.1.261 86 9/7/2024
2.1.260 301 9/7/2024
2.1.259 94 9/7/2024
2.1.258 332 9/7/2024
2.1.257 84 9/7/2024
2.1.256 97 9/6/2024
2.1.255 366 9/6/2024
2.1.254 186 9/6/2024
2.1.253 84 9/6/2024
2.1.252 280 9/6/2024
2.1.251 351 9/6/2024
2.1.250 88 9/6/2024
2.1.249 236 9/6/2024
2.1.248 87 9/6/2024
2.1.247 86 9/5/2024
2.1.246 74 9/5/2024
2.1.245 422 9/5/2024
2.1.244 207 9/5/2024
2.1.243 93 9/5/2024
2.1.242 331 9/5/2024
2.1.241 75 9/5/2024
2.1.240 209 9/5/2024
2.1.239 90 9/5/2024
2.1.238 93 9/5/2024
2.1.237 99 9/5/2024
2.1.236 83 9/5/2024
2.1.235 662 9/5/2024
2.1.234 196 9/5/2024
2.1.233 93 9/5/2024
2.1.232 102 9/4/2024
2.1.231 80 9/4/2024
2.1.230 696 9/4/2024
2.1.229 342 9/4/2024
2.1.228 216 9/4/2024
2.1.227 204 9/4/2024
2.1.226 204 9/3/2024
2.1.225 92 9/3/2024
2.1.224 86 9/3/2024
2.1.223 105 9/3/2024
2.1.222 302 9/3/2024
2.1.221 287 9/3/2024
2.1.220 86 9/3/2024
2.1.219 94 9/3/2024
2.1.218 78 9/3/2024
2.1.217 319 9/3/2024
2.1.216 107 9/3/2024
2.1.215 73 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,319 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