Skip to content

Commit

Permalink
lazy load huge img on first 10px
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Feb 20, 2023
1 parent 86e45ec commit 67dc7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Blocks/Hero/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Hero({
styles || {};

const bgImgRef = React.useRef();
const onScreen = useOnScreen(bgImgRef, '-300px');
const onScreen = useOnScreen(bgImgRef, '-10px');

return (
<div
Expand Down

0 comments on commit 67dc7d3

Please sign in to comment.