mathjax / mathjax/MathJax

v3.2 Lazy mode. Thank you. We expected it, you did it !

Open
#2,719 1 comment 0 reactions 1 assignee View on GitHub

@dpvc is already working on this.

Since Jan 11, 2022.

Code Example Needs Documentation v3
Dominant language
JavaScript
Stars
10.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Bonjour,

This is not a feature request, this is not a bug report. Maybe a tiny update in the official doc pointing out that the IntersectionObserver is used, so CSS properties have to be refined for macros defined in hidden tags using the CSS property display: none.

Thank you. We expected it, you did it ! Great work, well done. We have immediately migrated to version 3.2 in lazy mode : no more blocking time in pages, great performances. Excellent.
To manage macros in hidden tags, we migrated the display:none property to position:fixed, height:0, width:0 to ensure they are in the viewport and computed immediately even if the user is scrolled to any location in the page by an anchor.

  ins[class*="math"][class*="macros"]  { display: none; }

by

  ins[class*="math"][class*="macros"] {
    position: fixed; top: 10px; height: 0px; width: 0px;
    color: transparent; background-color: transparent;
}

A page blocking before v 3.2 lazy mode
Another page blocking before v 3.2 lazy mode

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.