Transfonter — online @font-face generator

Online tool. Convert standard desktop ttf fonts into web formats. Eg. @font-face { font-family: ‘Playfair Display’; font-style: normal; font-weight: 300; src: url(‘/Content/fonts/PlayfairDisplay-Regular.eot’); /* IE9 Compat Modes */ src: local(‘Playfair Display-Regular’), url(‘/Content/fonts/PlayfairDisplay-Regular.eot?#iefix’) format(’embedded-opentype’), /* IE6-IE8 */ url(‘/Content/fonts/PlayfairDisplay-Regular.woff2’) format(‘woff2’), /* Super Modern Browsers */ url(‘/Content/fonts/PlayfairDisplay-Regular.woff’) format(‘woff’), /* Modern Browsers */ url(‘/Content/fonts/PlayfairDisplay-Regular.ttf’) format(‘truetype’), /* Safari, Android, iOS */ […]

How can I use the script defer attribute for ASP MVC 4 Bundles with Scripts.Render – Stack Overflow

If you have an MVC bundle that you need to defer or async loading, you can use the following C# classes. public static class UtilityHelper { public static IHtmlString RenderAsyncScript(string virtualPath) { return Scripts.RenderFormat(@”<script src=””{0}”” async></script>”, virtualPath); } public static IHtmlString RenderDefer(string virtualPath) { return Scripts.RenderFormat(@”<script src='{0}’ defer></script>”, virtualPath); } } For example, to load […]