discoveryjs / discovery

A framework for rapid data (JSON) analysis, shareable serverless reports and dashboards
https://discoveryjs.github.io/discovery/
MIT License
336 stars 6 forks source link

Initialize Prism.js in manual mode #24

Closed exdis closed 4 years ago

exdis commented 4 years ago

By default when Prism.js initializes tries to highlight all possible code on page automatically. This may cause performance issues and problems when discovery.js works in foreign environments (widget, browser extension). The solution is to use the manual mode.