mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 10:01:18 -04:00
priority flag on above-the-fold images
This commit is contained in:
@@ -15,8 +15,9 @@ const CustomImg = (props: ImageProps) => {
|
|||||||
width={props.width}
|
width={props.width}
|
||||||
height={props.height}
|
height={props.height}
|
||||||
alt={props.alt}
|
alt={props.alt}
|
||||||
quality={85}
|
quality={65}
|
||||||
loading="lazy"
|
loading={props.priority ? "eager" : "lazy"}
|
||||||
|
priority={!!props.priority}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@@ -21,6 +21,7 @@ The team behind Bernie Sanders' 2020 campaign [released a new web app](https://w
|
|||||||
width="865"
|
width="865"
|
||||||
height="433"
|
height="433"
|
||||||
alt="Sad Bernie"
|
alt="Sad Bernie"
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
|
|
||||||
BERN has two features: one called "Friend-to-Friend" (described as "add everyone in your network") and another called "Community Canvassing" (described as "talk to people around you every day, e.g. on the bus, outside the grocery store, at a park"). Both of these involve phoning home to Sanders HQ with the following information on anybody you know or meet:
|
BERN has two features: one called "Friend-to-Friend" (described as "add everyone in your network") and another called "Community Canvassing" (described as "talk to people around you every day, e.g. on the bus, outside the grocery store, at a park"). Both of these involve phoning home to Sanders HQ with the following information on anybody you know or meet:
|
||||||
|
@@ -21,6 +21,7 @@ import Tweet from "./components/embeds/Tweet";
|
|||||||
width="865"
|
width="865"
|
||||||
height="180"
|
height="180"
|
||||||
alt="Archive.today screenshot"
|
alt="Archive.today screenshot"
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
|
|
||||||
A [recent post on Hacker News](https://news.ycombinator.com/item?id=19828317) pointed out something I've noticed myself over the past year — the [Archive.is](https://archive.is/) website archiving tool (aka [Archive.today](https://archive.today/) and a few other TLDs) appears unresponsive when I'm on my home network, where I use Cloudflare's fantastic public DNS service, [1.1.1.1](https://1.1.1.1/). I didn't connect the two variables until I read this post, where somebody noticed that the Archive.is domain resolves for [Google's 8.8.8.8](https://developers.google.com/speed/public-dns/) DNS, but not 1.1.1.1. An interesting and timeless debate on [privacy versus convenience](https://www.adweek.com/digital/why-consumers-are-increasingly-willing-to-trade-privacy-for-convenience/) ensued.
|
A [recent post on Hacker News](https://news.ycombinator.com/item?id=19828317) pointed out something I've noticed myself over the past year — the [Archive.is](https://archive.is/) website archiving tool (aka [Archive.today](https://archive.today/) and a few other TLDs) appears unresponsive when I'm on my home network, where I use Cloudflare's fantastic public DNS service, [1.1.1.1](https://1.1.1.1/). I didn't connect the two variables until I read this post, where somebody noticed that the Archive.is domain resolves for [Google's 8.8.8.8](https://developers.google.com/speed/public-dns/) DNS, but not 1.1.1.1. An interesting and timeless debate on [privacy versus convenience](https://www.adweek.com/digital/why-consumers-are-increasingly-willing-to-trade-privacy-for-convenience/) ensued.
|
||||||
|
@@ -19,6 +19,7 @@ import Image from "./components/embeds/Image";
|
|||||||
width="320"
|
width="320"
|
||||||
height="284"
|
height="284"
|
||||||
alt="Terminal.app on macOS"
|
alt="Terminal.app on macOS"
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
|
|
||||||
You may have noticed the recent trend of techies [posting their "dotfiles" on GitHub](https://github.com/topics/dotfiles) for the world to see. These usually contain shortcuts compatible with Bash terminals to automate convoluted commands that, I'll admit, I needed to Google every single time.
|
You may have noticed the recent trend of techies [posting their "dotfiles" on GitHub](https://github.com/topics/dotfiles) for the world to see. These usually contain shortcuts compatible with Bash terminals to automate convoluted commands that, I'll admit, I needed to Google every single time.
|
||||||
|
@@ -23,6 +23,7 @@ I've been a loyal Dropbox user since its inception as a [Y Combinator startup](h
|
|||||||
width="504"
|
width="504"
|
||||||
height="223"
|
height="223"
|
||||||
alt="Deleting 401,907 files from Dropbox... 😬"
|
alt="Deleting 401,907 files from Dropbox... 😬"
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
<figcaption>Deleting 401,907 files from Dropbox... 😬</figcaption>
|
<figcaption>Deleting 401,907 files from Dropbox... 😬</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
@@ -23,6 +23,7 @@ Not only are takeovers a fun way to dip your toes into [penetration testing](htt
|
|||||||
width="620"
|
width="620"
|
||||||
height="347"
|
height="347"
|
||||||
alt="Huge rewards for subdomain takeovers on HackerOne."
|
alt="Huge rewards for subdomain takeovers on HackerOne."
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
<figcaption>
|
<figcaption>
|
||||||
<a
|
<a
|
||||||
|
@@ -19,6 +19,7 @@ import Gist from "./components/embeds/Gist";
|
|||||||
width="780"
|
width="780"
|
||||||
height="322"
|
height="322"
|
||||||
alt="Example workflow for a GitHub Action"
|
alt="Example workflow for a GitHub Action"
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
|
|
||||||
Since being accepted into the beta for [GitHub Actions](https://github.com/features/actions) a few months ago, I've found a new side hobby of whipping up new (and ideally creative) actions for anybody to add to their CI pipeline. Actions are modular steps that interact with a GitHub repository and can be coded with [Docker](https://github.com/actions/hello-world-docker-action) or [JavaScript/Node](https://github.com/actions/hello-world-javascript-action) — and either way, they can be as [simple](https://github.com/jakejarvis/wait-action) or as [complex](https://github.com/jakejarvis/lighthouse-action) as you want. But in both cases, they're incredibly fun to make and the results always scratch my itch for instant gratification.
|
Since being accepted into the beta for [GitHub Actions](https://github.com/features/actions) a few months ago, I've found a new side hobby of whipping up new (and ideally creative) actions for anybody to add to their CI pipeline. Actions are modular steps that interact with a GitHub repository and can be coded with [Docker](https://github.com/actions/hello-world-docker-action) or [JavaScript/Node](https://github.com/actions/hello-world-javascript-action) — and either way, they can be as [simple](https://github.com/jakejarvis/wait-action) or as [complex](https://github.com/jakejarvis/lighthouse-action) as you want. But in both cases, they're incredibly fun to make and the results always scratch my itch for instant gratification.
|
||||||
|
@@ -20,6 +20,7 @@ import Tweet from "./components/embeds/Tweet";
|
|||||||
width="865"
|
width="865"
|
||||||
height="162"
|
height="162"
|
||||||
alt="Black lives matter."
|
alt="Black lives matter."
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
|
|
||||||
In the midst of this year's long-overdue support of the [**Black Lives Matter**](https://blacklivesmatters.carrd.co/) movement and calls to action in the US and around the world, a [new spotlight](https://mail.gnome.org/archives/desktop-devel-list/2019-May/msg00066.html) has been placed on unchecked invocations of racially charged language in the computer science world, no matter how big or small — like the long-standing and, until recently, widely accepted terms ["master" and "slave"](https://tools.ietf.org/id/draft-knodel-terminology-00.html#master-slave) as an oppressive metaphor for ownership/importance.
|
In the midst of this year's long-overdue support of the [**Black Lives Matter**](https://blacklivesmatters.carrd.co/) movement and calls to action in the US and around the world, a [new spotlight](https://mail.gnome.org/archives/desktop-devel-list/2019-May/msg00066.html) has been placed on unchecked invocations of racially charged language in the computer science world, no matter how big or small — like the long-standing and, until recently, widely accepted terms ["master" and "slave"](https://tools.ietf.org/id/draft-knodel-terminology-00.html#master-slave) as an oppressive metaphor for ownership/importance.
|
||||||
|
@@ -21,6 +21,7 @@ import Tweet from "./components/embeds/Tweet";
|
|||||||
width="865"
|
width="865"
|
||||||
height="303"
|
height="303"
|
||||||
alt="The Cloud-pocalypse: Coming soon(er than you think) to a server near you."
|
alt="The Cloud-pocalypse: Coming soon(er than you think) to a server near you."
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
<figcaption>
|
<figcaption>
|
||||||
<strong>The Cloud-pocalypse:</strong> Coming soon(er than you think) to a server near you.
|
<strong>The Cloud-pocalypse:</strong> Coming soon(er than you think) to a server near you.
|
||||||
|
@@ -19,6 +19,7 @@ import Image from "./components/embeds/Image";
|
|||||||
width="620"
|
width="620"
|
||||||
height="456"
|
height="456"
|
||||||
alt="df -dh = WTF"
|
alt="df -dh = WTF"
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
<figcaption>
|
<figcaption>
|
||||||
<code>df -dh</code> = WTF
|
<code>df -dh</code> = WTF
|
||||||
|
@@ -21,6 +21,7 @@ import Video from "./components/embeds/Video";
|
|||||||
width="865"
|
width="865"
|
||||||
height="411"
|
height="411"
|
||||||
alt="Hillary for New Hampshire Winter Fellows with Hillary Clinton in Derry, NH (February 3, 2016)"
|
alt="Hillary for New Hampshire Winter Fellows with Hillary Clinton in Derry, NH (February 3, 2016)"
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
<figcaption>
|
<figcaption>
|
||||||
<a href="https://medium.com/@HillaryForNH" target="_blank" rel="noopener noreferrer">Hillary for New Hampshire</a> Winter Fellows with <a href="https://medium.com/@HillaryClinton" target="_blank" rel="noopener noreferrer">Hillary Clinton</a> in Derry, NH (<a href="https://www.flickr.com/photos/hillaryclinton/24707394571/" target="_blank" rel="noopener noreferrer">February 3, 2016</a>)
|
<a href="https://medium.com/@HillaryForNH" target="_blank" rel="noopener noreferrer">Hillary for New Hampshire</a> Winter Fellows with <a href="https://medium.com/@HillaryClinton" target="_blank" rel="noopener noreferrer">Hillary Clinton</a> in Derry, NH (<a href="https://www.flickr.com/photos/hillaryclinton/24707394571/" target="_blank" rel="noopener noreferrer">February 3, 2016</a>)
|
||||||
|
@@ -18,6 +18,7 @@ import Image from "./components/embeds/Image";
|
|||||||
width="865"
|
width="865"
|
||||||
height="155"
|
height="155"
|
||||||
alt="Awesome First Code on GitHub"
|
alt="Awesome First Code on GitHub"
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Image src="/static/images/notes/my-first-code/badges.png" width="537" height="36" alt="Code Quality: A for effort" />
|
<Image src="/static/images/notes/my-first-code/badges.png" width="537" height="36" alt="Code Quality: A for effort" />
|
||||||
|
@@ -21,6 +21,7 @@ I've been trying out [Netlify Analytics](https://www.netlify.com/products/analyt
|
|||||||
width="865"
|
width="865"
|
||||||
height="361"
|
height="361"
|
||||||
alt="Pageview charts on Netlify Analytics"
|
alt="Pageview charts on Netlify Analytics"
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
|
|
||||||
## 👍 Pros
|
## 👍 Pros
|
||||||
|
@@ -16,7 +16,7 @@ import Image from "./components/embeds/Image";
|
|||||||
|
|
||||||
{/* prettier-ignore */}
|
{/* prettier-ignore */}
|
||||||
<figure>
|
<figure>
|
||||||
<Image src="/static/images/notes/no-homo-still-raps-motto/1_b41ztscbaxqi60snwsswfw.jpg" width="865" height="364" />
|
<Image src="/static/images/notes/no-homo-still-raps-motto/1_b41ztscbaxqi60snwsswfw.jpg" width="865" height="364" priority />
|
||||||
<figcaption>
|
<figcaption>
|
||||||
This essay was written for Professor David Valdes-Greenwood's "Love & Sexuality" class at <a href="https://www.tufts.edu/" target="_blank" rel="noopener noreferrer"> Tufts University </a> in April 2012.
|
This essay was written for Professor David Valdes-Greenwood's "Love & Sexuality" class at <a href="https://www.tufts.edu/" target="_blank" rel="noopener noreferrer"> Tufts University </a> in April 2012.
|
||||||
</figcaption>
|
</figcaption>
|
||||||
|
@@ -19,6 +19,7 @@ import Video from "./components/embeds/Video";
|
|||||||
width="865"
|
width="865"
|
||||||
height="460"
|
height="460"
|
||||||
alt="President Barack H. Obama, probably ranking 404 pages."
|
alt="President Barack H. Obama, probably ranking 404 pages."
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
<figcaption>President Barack H. Obama, probably ranking 404 pages.</figcaption>
|
<figcaption>President Barack H. Obama, probably ranking 404 pages.</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
@@ -20,6 +20,7 @@ import Image from "./components/embeds/Image";
|
|||||||
width="700"
|
width="700"
|
||||||
height="275"
|
height="275"
|
||||||
alt="An A+ security grade for this website!"
|
alt="An A+ security grade for this website!"
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
<figcaption>
|
<figcaption>
|
||||||
An <a href="https://securityheaders.com/?q=jarv.is&followRedirects=on" target="_blank" rel="noopener noreferrer">A+ security grade</a> for this website!
|
An <a href="https://securityheaders.com/?q=jarv.is&followRedirects=on" target="_blank" rel="noopener noreferrer">A+ security grade</a> for this website!
|
||||||
|
@@ -22,6 +22,7 @@ Over time, I've collected an assortment of interesting, funny, and depressing se
|
|||||||
width="865"
|
width="865"
|
||||||
height="248"
|
height="248"
|
||||||
alt="Most search filters require a Shodan account."
|
alt="Most search filters require a Shodan account."
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
<figcaption>
|
<figcaption>
|
||||||
|
@@ -23,6 +23,7 @@ Introducing the [**Y2K Sandbox**](https://y2k.app/) — with fully-featured, ful
|
|||||||
width="865"
|
width="865"
|
||||||
height="649"
|
height="649"
|
||||||
alt="Play in the Y2K Sandbox, at your own risk."
|
alt="Play in the Y2K Sandbox, at your own risk."
|
||||||
|
priority
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
<figcaption>
|
<figcaption>
|
||||||
|
Reference in New Issue
Block a user