perf: lean bootstrap javascript (#1734)

This commit is contained in:
Cotes Chung
2024-05-11 10:29:14 +08:00
committed by GitHub
parent c17fba44f5
commit ddb48eda52
11 changed files with 89 additions and 55 deletions

View File

@@ -1,6 +1,9 @@
/**
* Tab 'Categories' expand/close effect.
*/
import 'bootstrap/js/src/collapse.js';
const childPrefix = 'l_';
const parentPrefix = 'h_';
const children = document.getElementsByClassName('collapse');