improve website with defer

This commit is contained in:
Rene Haas
2022-11-16 16:37:17 +01:00
parent 3bee91bd5a
commit 26f42d09c0
8 changed files with 10 additions and 9 deletions
+1
View File
@@ -3,6 +3,7 @@ import type { ComponentProps } from 'react';
export const Pre = ({ children }: ComponentProps<'pre'>) => (
<OverlayScrollbarsComponent
defer
element="pre"
options={{
paddingAbsolute: true,
+1 -1
View File
@@ -45,7 +45,7 @@ const IndexPage: NextPage = () => {
overlay scrollbars and keeps the native functionality and feeling.
</p>
{separator('used by')}
<OverlayScrollbarsComponent>
<OverlayScrollbarsComponent defer>
<div className="flex justify-center">
<div className={classnames('inline-flex items-center gap-6 py-6', styles.usedBy)}>
<div