You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The highlight.js doc suggests to include only the languages needed instead. Maybe with the require syntax the plugin could take an optional parameter to include only specific languages ?
This would be a huge performance gain for all users of the plugin.
The text was updated successfully, but these errors were encountered:
Hi,
I noticed that the highlight.js plugin loads all languages by default:
reveal.js/plugin/highlight/plugin.js
Line 1 in 4725350
The full script is huge, 287.4kB minzipped.
The highlight.js doc suggests to include only the languages needed instead. Maybe with the
![image](https://private-user-images.githubusercontent.com/22420399/334544630-2c3a4b79-1df2-40d6-b69e-0ae802f90514.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0NzAxODgsIm5iZiI6MTcyNDQ2OTg4OCwicGF0aCI6Ii8yMjQyMDM5OS8zMzQ1NDQ2MzAtMmMzYTRiNzktMWRmMi00MGQ2LWI2OWUtMGFlODAyZjkwNTE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDAzMjQ0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJjOWFiZjZjYzUwZWY2NGJhODRmZTQ4YWU2ZGRkNmUyMzE0MTFkMDFlZmIwYzJmOWFhNTAwODk2OGIzMjFjOWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.E1-MZ3HDjZqz-vnb-5kQm2jlJltdJaagKqMVL1RWVLQ)
require
syntax the plugin could take an optional parameter to include only specific languages ?This would be a huge performance gain for all users of the plugin.
The text was updated successfully, but these errors were encountered: