Chrome now supports HTTP 103 Early Hint status to enable faster loading of page resources such as CSS and JS

Google Chrome now supports the HTTP Early Hint 103 status. Early Hint 103s are used to indicate resources (such as CSS, JS, Images etc.) which are required by the page and are sent BEFORE 200 OK responses…

… This means the browser DOESN’T HAVE TO WAIT a couple of hundred milliseconds on the 200 response but can start loading the resources immediately which can result in faster final page rendering as things like CSS can be loaded quicker.

I’ve created the image below (adapted from here) to try and show the idea. Click on the image for a larger view in a new tab…

More Info

New in Chrome 103 – Chrome Developers

Early Hints: How Cloudflare Can Improve Website Load Times by 30%


Visual Studio 17.2 Preview 3+ includes a new all in one search

Visual Studio 17.2 Preview 3+ has a new all in one search dialogue which allows developers to search through their code and Visual Studio features from one screen.

When searching code we can search generally or specifically in file names, type names and member names. An example where I search for types with ‘simple’ in them in the BenchmarkDotNet library is below…

To enable the new all in one search feature make sure the ‘New Visual Studio Search experience’ checkbox shown below is checked…

System.Random is much faster in .NET 6 as Microsoft have changed underlying algorithm

In .NET 6 Microsoft have changed the algorithm used in System.Random and the performance improvements are crazy.

Check out the Ratio columns on the BenchmarkDotNet output below… WOW!!!

Click on the image for a larger view in a new tab.

There’s so many performance improvements in .NET 6 but the Random class is used in hot loops all the time so the potential here is huge…

BUT… remember for cryptographically-secure random number generation the RandomNumberGenerator class in the System.Security.Cryptography namespace should be used instead.