November Happy Hour will be moved to Thursday December 5th.
I've created a Google Maps block for usage on my website.
At the top of the block I have something like this:
@{ var clientScript = string.Format("https://maps.googleapis.com/maps/api/js?key={0}&callback=initMap", Model.ApiKey); ClientResources.RequireScript(clientScript).AtFooter(); }
And then in my layout I have this:
@Html.RequiredClientResources("Footer");
This is working. However, Google recommends adding `async` and `defer` to the script tag for Google Maps, like so:
How can we instruct Episerver to inject async and defer attributes on the script tag which is output?
I've created a Google Maps block for usage on my website.
At the top of the block I have something like this:
And then in my layout I have this:
This is working. However, Google recommends adding `async` and `defer` to the script tag for Google Maps, like so:
How can we instruct Episerver to inject async and defer attributes on the script tag which is output?