Princeton-CDH / lenape-timetree

Source code for the CDH-sponsored Lunaapahkiing Princeton Timetree research project
https://lenapetimetree.indigenous.princeton.edu/
Apache License 2.0
4 stars 1 forks source link

optimize javascript / leaf layout #212

Closed rlskoeser closed 1 year ago

rlskoeser commented 1 year ago

lighthouse complains about the time to render the page; would be good if we can optimize somehow

wondering if we could apply initial positions to the leaves to speed up the force layout

rlskoeser commented 1 year ago

Changes in #226 included a higher alpha decay value for the force simulation, and the layout now completes in 30 ticks instead of 300 ticks. I don't know how much this optimizes things overall, but the force layout should be much faster now.

rlskoeser commented 1 year ago

this was resolved by the solution implemented in May; comments from code review confirmed the load time is sufficiently performant and we're already using the recommended approach for optimizing layout speed