Archives concerning all matters web development and beyond

From my Desk

Is loading everything on a site necessary?

Published: 09/11/2019 | Time To Read:2mins

The last couple of days I was doing some profiling of pages on my website, seeing where and how I could optimize and cut down on bundles to improve the user experience and noticed something that when I started thinking about it made no sense.

What am I talking about? The privacy policy page was loaded just like any other article on the site using GraphQL, and thus relied on waiting on the network for one thing, but also additional packages being pulled in to load that increasing bundle size.

Let's be honest, how often does a privacy policy change? Once a year maybe. I got to thinking about that and decided the best course of action was to strip it out and make the page truly static, but with a twist. The contents of the page are pulled in via a markdown file, a standard thats well known and used and well frankly works great! It's local so much quicker to load, instant more or less actually, saves network requests and bundle size.

So why did I decide to bring this up? Well it got me to thinking about other places I'm loading data across my site and where and if possible I can undo this. Thankfully everything else truly is dynamic and thus the loading is needed but It's something I need to be mindful of going forward.

Contact Me

Reach out today with any questions or concerns.

Follow Me

Be sure to see the latest and greatest


Use of this site constitues acceptance of our Privacy Policy. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Its Miller Time Dev.

Copyright © 2022v2.4.2