Rename custom.js to ajax.js
This commit is contained in:
parent
340e25aa71
commit
784a89fc9e
3 changed files with 3 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ Capability drives presentation. Content for everyone, interactivity for those wh
|
||||||
|
|
||||||
1. **No CSS preprocessors.** Raw CSS only. CSS custom properties for theming. No LESS, no SASS, no PostCSS.
|
1. **No CSS preprocessors.** Raw CSS only. CSS custom properties for theming. No LESS, no SASS, no PostCSS.
|
||||||
2. **CSS Grid only.** No flexbox, no floats. CSS Grid for all layout.
|
2. **CSS Grid only.** No flexbox, no floats. CSS Grid for all layout.
|
||||||
3. **No jQuery.** Vanilla JavaScript only. Create `custom.js` for shared utilities.
|
3. **No jQuery.** Vanilla JavaScript only. Create `ajax.js` for shared utilities.
|
||||||
4. **No framework bloat.** No Bootstrap, no Tailwind. Semantic HTML + minimal CSS.
|
4. **No framework bloat.** No Bootstrap, no Tailwind. Semantic HTML + minimal CSS.
|
||||||
5. **Progressive enhancement.** `<noscript>` fallbacks. `js-only` class pattern. Native HTML5 elements (`<details>`, `<dialog>`, `<datalist>`).
|
5. **Progressive enhancement.** `<noscript>` fallbacks. `js-only` class pattern. Native HTML5 elements (`<details>`, `<dialog>`, `<datalist>`).
|
||||||
6. **Mako server-side rendering.** Keep it. It works.
|
6. **Mako server-side rendering.** Keep it. It works.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* custom.js — Vanilla JS utilities, zero dependencies */
|
/* ajax.js — Vanilla JS utilities, zero dependencies */
|
||||||
/* Replaces jQuery patterns with modern DOM APIs */
|
/* Replaces jQuery patterns with modern DOM APIs */
|
||||||
|
|
||||||
(function(window, document) {
|
(function(window, document) {
|
||||||
|
|
@ -726,7 +726,7 @@
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="${h.asset('js/custom.js')}"></script>
|
<script src="${h.asset('js/ajax.js')}"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Sidebar active state on scroll
|
// Sidebar active state on scroll
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue