Make it fast.
Make it frictionless.
Make it accessible.
const axios = require('axios');
const userID = 127;
const getUserData = function(userID) {
return axios.get('/user/' + userID);
}
const a=require("axios"),b=127,c=function(e){return
a.get("/user/"+e)}
const axios = require('axios');
const userID = 127;
const getUserData = function(userID) {
return axios.get('/user/' + userID);
}
const axios=require('axios');const userID=127;const
getUserData=function(userID){return axios.get('/user/'
+userID)};
import _ from 'lodash';
import { sortedUniqBy } from 'lodash';
moment
: ~72kb (minified & gzipped)date-fns
: ~20kb (minified & gzipped)async
- don’t interrupt renderingdefer
- load after page load finishes<picture>
<source type="image/avif" src="trees.avif" />
<img
src="trees.jpg"
alt="A forest full of trees in fall"
/>
</picture>
<img
srcset="trees-lg.jpg 2000w,
trees-sm.jpg 500w"
sizes="(max-width: 500px) 500px,
2000px"
src="trees.jpg"
alt="A forest full of trees in fall"
/>
<img
src="trees.jpg"
alt="A forest full of trees in fall"
loading="lazy"
/>
<picture>
<source
type="image/avif"
src="https://cdn.com/trees.avif"
/>
<img
srcset="https://cdn.com/w_2000/trees.jpg 2000w,
https://cdn.com/w_500/trees.jpg 500w"
src="https://cdn.com/trees.jpg"
alt="A forest full of trees in fall"
loading="lazy"
/>
</picture>
woff2
/ woff
formatfont-display: swap
0px
➡ 0
rgb(200,175,20)
➡ #C8AF14
<link rel="stylesheet" href="styles.css"
media="print" onload="this.media='all'" />
* There is no fold…
jdsteinbach