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.

Want to thank me?

If I've helped you out and you want to thank me, why not buy me a coffee?

Buy me a coffee

About the author

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.

Related Posts

How to search by picked multi node tree picker values in Umbraco v8

This post shows you how you can use examine to search for articles which have the category picked in…

Read Post

How to enable AMP in Umbraco 7 Websites

This post shows you how I set up AMP in my Umbraco 7 website

Read Post

How to render the actual document type icons in the tree in Umbraco

This post gives you the code to be able to see the icons for your document types in the tree view ra…

Read Post

How to animate tree icons in Umbraco v8

This post shows you how you can change the colour and animate tree icons in Umbraco based on a prope…

Read Post