A Blazor component for smart script injection, ensuring JavaScript files are loaded once and only once, ideal for lazy loading.
Excubo.Blazor.ScriptInjection brings the script tag to Blazor components, solving the common issue of duplicate script inclusions when components are used multiple times. It ensures that JavaScript source files are injected into the page body only once, making it ideal for lazy loading scripts in component libraries or applications.
IScriptInjectionTracker.Async and Defer attributes on script tags for better performance control.The library is designed to eliminate the friction of managing script dependencies in Blazor applications, promoting cleaner component architecture and reducing manual overhead for developers.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.