This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect } from 'react'; | |
import { setUpCoreVitalsTracking } from '../lib/performance-metrics'; | |
export default function App({ Component, pageProps }) { | |
useEffect(() => { | |
setUpCoreVitalsTracking(); | |
}, []); | |
return <Component {...pageProps} />; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
export const Null = () => null; | |
class DeferRender extends React.PureComponent { | |
state = { shouldRender: false }; | |
componentDidMount() { | |
window.requestAnimationFrame(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import time | |
import os | |
import urllib.request | |
import sys | |
from multiprocessing.pool import ThreadPool | |
def main(): | |
categories_path = "synset-categories.csv" | |
geturls_base = "http://image-net.org/api/text/imagenet.synset.geturls?wnid=" |