Git Product home page Git Product logo

Comments (5)

seweil avatar seweil commented on August 15, 2024

Yes, building the TOC DOM dynamically appears to take about 40% of page load time.
Another possible approach is to save the TOC from the browser at 'build' time.

from slate.

PreciselyAlyss avatar PreciselyAlyss commented on August 15, 2024

Going through the V2 feature branch, it seems that it only headers are only identified if they are used in the index page and not if they are within the included files. Is there a good way to be able to read the headers out of included files or is this a limitation of that current feature implementation?

from slate.

lord avatar lord commented on August 15, 2024

Added in the dev branch! Let me know if anybody runs into issues with the new code.

@bc-AlyssNoland thanks for the catch, this should be fixed in the latest toc generation implementation!

from slate.

seweil avatar seweil commented on August 15, 2024

@lord - If we want to try static TOC, would you recommend that we apply #701 to the release branch, or run with the dev branch? (E.g. can you comment on completeness and stability?)

from slate.

lord avatar lord commented on August 15, 2024

@seweil I'd try out the dev branch! There may be a few remaining bugs with it, but applying #701 to the release branch would result in the same bugs or maybe even more.

from slate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.