ChrisTitusTech / website

My HUGO Website that I use for Videos, Blogs, and Redirects
89 stars 45 forks source link

Including styles directly into html instead of linking to cacheable file #121

Open digitalsparky opened 1 year ago

digitalsparky commented 1 year ago

Looks like, for some reason, your styles (bootstrap et al) are being compiled into the HTML source directly, as opposed to what should be happening where you build a minified file and link to it.

File in question:

https://github.com/ChrisTitusTech/website/blob/master/themes/northendlab/layouts/partials/style.html#L13

Outputs this type of HTML output, as opposed to a link:

<style crossorigin="anonymous" media="all" type="text/css" integrity="sha512-60QIAY7Yi6cKKh3VUI6HREzGaXrHl7UqV2j5uT96MUpy/eQCi3m9Z9Y0b/trMOTntP5AoAi0iCnOBdwAnbhpjg==">/*!* Bootstrap v4.6.0 (https://getbootstrap.com/)
--
  | * Copyright 2011-2021 The Bootstrap Authors

In its current state, you're transferring the static css every time a page loads, as opposed to allowing the single file to be cached on the browser, causing further load delay.

digitalsparky commented 1 year ago

Pull #122