@ -12,23 +12,22 @@ description = "After Dark is a complete hypermedia authoring system for the Hugo
</div>
</section>
<sectionclass="grid">
<sectionclass="grid tagline">
<divclass="cell -12of12">
<pclass="leading">After Dark is a complete hypermedia authoring system for the {{<externaltext="Hugo Static Site Generator"href="https://gohugo.io"/>}} designed for the creation of engaging websites that are easy to build, fully customizable and secure by design.</p>
<p>After Dark is a robust hypermedia authoring system using {{<externaltext="Hugo Static Site Generator"href="https://gohugo.io"/>}} for creating immersive websites that are incredibly fast, easy to customize and securely designed.</p>
{{<figurealt="After Dark screenshots"src="minimal-mac_1600x1200-fs8.png"lqipsrc="minimal-mac_800x600-fs8.png">}}
</section>
@ -40,9 +39,23 @@ description = "After Dark is a complete hypermedia authoring system for the Hugo
<h2id="feature-imaging">Unreal Graphics</h2>
<p>Create lazy-loading responsive images and galleries with low-quality image placeholders and special effects all without touching an image editor.</p>
description = "Highlight code written in more than 160 languages."
categories = ["Experience"]
tags = ["color", "style", "syntax"]
features = ["snippets", "related content"]
features = ["snippets", "related content", "jit requests"]
+++
After Dark uses a customized version of {{<externalhref="https://atom.io/themes/one-dark-syntax"text="One Dark Syntax"/>}} to produce print-friendly code highlighting for more than 160 languages.
description = "Load external scripts and styles with incredible speed."
categories = ["experience"]
tags = ["performance", "styles"]
features = ["snippets", "related content"]
+++
After Dark uses {{<externalrel="external help"href="https://git.habd.as/jhabdas/fetch-inject"text="Fetch Inject"/>}} library to load and execute external scripts and styles faster than native browsers are capable of doing it themselves.
{{<externalhref="https://hackcabin.com/post/managing-async-dependencies-javascript/"text="Fetch Injection"/>}} was conceptualized and first developed specifically for After Dark to make it possible to deep-link to full-sized [Image Gallery](/modules/hall-of-mirrors) images near-instantly and carries with it a number of other performance applications.
Use Fetch Inject in your [Custom Layouts](../custom-layouts) to load scripts and styles from your site `static` directory or include cross-origin resources:
{{<highlighthtml"linenos=inline">}}
<script>
fetchInject(['/js/baffle.min.js']).then(() => {
baffle('header h1').start().reveal(1000);
})
</script>
{{</highlight>}}
Fetch Inject is non-blocking, has 0 dependencies and is already included for use on all pages within After Dark. See the {{<externalrel="external help"href="https://git.habd.as/jhabdas/fetch-inject"text="Fetch Inject"/>}} `README` for use cases.
description = "Maximize resources while minimizing external requests."
categories = ["experience"]
tags = ["performance", "styles", "javascript"]
features = ["related content", "snippets", "code highlighter"]
+++
After Dark makes <abbrtitle="Just-In-Time">JIT</abbr> requests for some external assets to cut down on resource consumption and increase page performance.
Take the [Code Highlighter](../code-highlighter) stylesheet for example:
The above highlighted code is, itself, highlighted using a JIT request. Confirm by viewing the network requests for this page and observe the `fetch` requests:
```sh
jit-requests (document)
├── lazysizes.min.js (fetch)
├── syntax.css (fetch)
```
Rather than blocking the page with an external request [Fetch Injection](../fetch-injection) is used to load them on-the-fly while the base layout takes care to ensure they're only on pages which actually need them.
Another example can be seen in the [Table Of Contents](../table-of-contents) whereby a {{<externalhref="https://devdocs.io/css/scroll-behavior"text="scroll-behavior"/>}} polyfill is loaded but not until user shows intent to use the feature.
Study these patterns and try building your own in your own [Custom Layouts](../custom-layouts).
<p>From<ahref="./air-gapping">Air Gapping</a> to <ahref="./webmaster-tools">Webmaster Tools</a>, After Dark gives you the core features you need to create engaging hypermedia content online or off.</p>
<p>Explore the many features available to you in After Dark or run the<ahref="./quick-installer">Quick Installer</a> to download the theme and use the <ahref="./online-help">Online Help</a> try them yourself.</p>