| @@ -60,9 +60,12 @@ | ||
| 60 | 60 | 'docs_per_page' => -1, |
| 61 | 61 | 'postsOrderBy' => 'title', |
| 62 | 62 | 'postsOrder' => 'asc', |
| 63 | 63 | 'enableNestedSubcategory' => false, |
| 64 | - 'enableLazyLoad' => false, | |
| 64 | + // Default follows the global "Lazy Load Sidebar Docs & Subcategories" | |
| 65 | + // setting, mirroring the Elementor sidebar widget's control default, so | |
| 66 | + // enabling the setting lazy-loads the block too unless overridden. | |
| 67 | + 'enableLazyLoad' => (bool) betterdocs()->settings->get( 'archive_lazy_load_descendants' ), | |
| 65 | 68 | 'docs_per_subcategory' => 10, |
| 66 | 69 | 'titleTag' => 'h1', |
| 67 | 70 | 'show_count' => false, |
| 68 | 71 | 'enableStickyTOC' => false, |