Here are 10 web developer tips and tricks I learned at Codegarden 2018


Credit: Vitaly Friedman

The algorithmic concept is to find image width values that offer a significant reduction in file size. Images are analyzed to find the best breakpoints on an image by image basis, rather than creating all possible image resolutions, and enables developers to easily create 'picture' and 'img' HTML5 elements based on the calculated breakpoints.

2. Image contrast trick

Credit: Vitaly Friedman

Remove contrast from an image before saving it to your file system. Then when you serve it, apply the contrast using CSS. You can't tell the difference and it saves a lot of disk space and bandwidth.

3. Image pixels and quality trick

Credit: Vitaly Friedman

Increase the pixel size to double the pixels needed and save it with 0% quality, then display it at half the size. The result is a smaller image on disk and the difference on the screen is not noticeable.


Credit: Vitaly Friedman

This service uses artificial intelligence to upscale low quality images and make them high quality.

Here is an example of it in use:





5. font-display trick

Credit: Vitaly Friedman

Prevent your page from flashing the text when the fonts load, or showing nothing at all until they do. Be in charge of what happens with fonts on your page


Credit: Jeffrey Shoemaker

See what other sites are on the same server as you. This is used by hackers, if they can't hack you through your site, they can get you through your neighbouring sites.

7. SQL Data Security tip 1

Credit: Jeffrey Shoemaker

Transparent Data Encryption (TDE) only encrypts the files and backups, not the values in the tables.

8. SQL Data Security tip 2

Credit: Jeffrey Shoemaker

To encrypt the values in the columns, you can right click on the table and choose encrypt columns, but it doesn't work for TEXT and NTEXT columns.

9. Use Smidge instead of Client Dependency

Credit: Shannon Diminick

I was talking to Shannon Diminick about Client Dependency and he said, "that's old, you should be using Smidge". Apparently it does a better job than Client Dependency plus more features.

10. Models Builder API

Credit: Nik

Use the Models Builder API with the Models Builder Custom Tool. It allows you to have your models in a separate library, instead of in the web project. The get generated as partial classes so you can added other properties to these models in a separate partial class file. I'll do a video on this when I get chance.

Paul Seal

Umbraco MVP and .NET Web Developer from Derby (UK) who specialises in building Content Management System (CMS) websites using MVC with Umbraco as a framework. Paul is passionate about web development and programming as a whole. Apart from when he's with his wife and son, if he's not writing code, he's thinking about it or listening to a podcast about it.

Proudly sponsored by


  • Moriyama build, support and deploy Umbraco, Azure and ASP.NET websites and applications.

  • CI/CD service for Windows, Linux and macOS
  • Build, test, deploy your apps faster, on any platform.

  • Custom stickers for startups, artists and brands.
  • Bespoke easy-apply, removable, custom brand stickers printed in the UK.

  • is the easy error logging and uptime monitoring service for .NET.
  • Take back control of your errors with support for all .NET web and logging frameworks.
uSync Complete

  • uSync.Complete gives you all the uSync packages, allowing you to completely control how your Umbraco settings, content and media is stored, transferred and managed across all your Umbraco Installations.

  • More than a theme for Umbraco CMS, take full control of your content and design with a feature-rich, award-nominated & content editor focused website platform.