Golly gosh it's a long time since I looked at the Client Dependency Framework.... but I think.. you can just pass the attributes into the Html.RequiresJs and Html.RequiresCSS helpers eg...
Html.RequiresJs("site.js", "Scripts", new { async="" })
Html.RequiresCss("~/css/styles.css", new Dictionary<string, string>() { { "rel", "preload" } });
DependencyHandler add attribute on script and css tag
Is there any way that I can add defer or async attribute on script tag and css rel=preload generated by client dependency?
E.g.
Hi Ivan
Golly gosh it's a long time since I looked at the Client Dependency Framework.... but I think.. you can just pass the attributes into the Html.RequiresJs and Html.RequiresCSS helpers eg...
but it's been a while!
regards
marc
is working on a reply...