Skip to content
RED SAGSkills
medium10 pts · first answer countsjavascriptmodulesperformance

Loading a chart library on click

A heavy chart library is only needed when the user opens Reports. What does this code achieve?

button.onclick = async () => {
  const { renderChart } = await import("./chart.js")
  renderChart(data)
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions