Skip to content

Commit

Permalink
feat: lazy-render code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
TrebledJ committed Nov 6, 2023
1 parent 3e9b5e4 commit 37dd4d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/scss/_posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@
}
}

// Lazy-render elements.
pre[class*=language-],
details {
content-visibility: auto;
}

&,
.alert-content,
blockquote,
Expand Down

0 comments on commit 37dd4d1

Please sign in to comment.