Comments (2)
Hi @luguosong, thanks for submitting an issue! To make sure I understand your issue: are you trying to manipulate the DOM by placing something in custom.js
? If so, this is still possible given the location of custom.js
in the <head>
(preceding the DOM) - you will just want to wrap your code in an event listener that waits for the DOM to be ready.
In this case, you will likely either want to look at:
- the DOMContentLoaded event
- the load event
In fact, it's good practice to do this even when your script
tags are at the end of your HTML document - since DOM construction can be asynchronous.
(if I've misinterpreted your problem, feel free to follow up)
from just-the-docs.
Understood.
from just-the-docs.
Related Issues (20)
- Add in-page right sidebar HOT 3
- `just-the-docs.com` copyright is out of date HOT 4
- big HOT 1
- Incorrect positioning of clickable area for navigation links in Safari/macOS HOT 6
- Add support for Lunr pre-built indexes HOT 3
- Zion LLC HOT 1
- Support CTRL+k shortcut for triggering the search input HOT 2
- Organize pages using IDs HOT 1
- Option to define groups with front matter HOT 3
- Log 2023-11-18 00_48_10.txt
- Searching _posts HOT 1
- Indented Markdown diff does not handle empty newlines HOT 2
- t
- Back-to-top link not shown HOT 1
- Only first child in entire site gets expanded/shown in nav bar HOT 8
- UI breaking issue in landscape printing HOT 1
- Edit in Github link has extra slash when using collections with no permalink HOT 3
- custom.scss and setup.scss postprocessing issue HOT 5
- Search functionality is not working out of the box, zzzz-search-data.json is getting rendered as a HTML page instead of a JSON file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from just-the-docs.