Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Sarah Edwards 7e4db83ead
Add event tracking for application selector (#19533)
4 years ago
..
3df90fc9b8
Hello git history spelunker!
4 years ago
a09efda1be
fix: add rel noopener to aitgap-links.js
4 years ago
7b31c08e16
"All articles" component of Actions landing page (#16318)
4 years ago
8b86fd8fef
Reduce minified JS bundle size from 189kb to 73kb (#17552)
4 years ago
e6629a6416
fix Expand and Close toggling
4 years ago
4dbf2c527a
Update display-platform-specific-content.js
4 years ago
7e4db83ead
Add event tracking for application selector (#19533)
4 years ago
7e4db83ead
Add event tracking for application selector (#19533)
4 years ago
57e1a1b9c1
End Lunr AB test (#19155)
4 years ago
13d8fe66ab
well process.env is just not a thing in frontend javascripts
4 years ago
1fc4c3f68b
Article restructuring for Sponsors landing page (#18772)
4 years ago
1918d2ea14
Inline CSRF token in HTML (#17748)
4 years ago
bcd91a04c6
End survey stars AB test (#17907)
4 years ago
cdb1e4a849
Convert em to mark in search results (#17391)
4 years ago
be8aa2bccb
Add tabs for cli/desktop/ui (#19071)
4 years ago
3df90fc9b8
Hello git history spelunker!
4 years ago
7848e3ce08
return early instead of erroring out on nonstandard page
4 years ago
f8074874be
A couple of tweaks to release notes page (#16934)
4 years ago
c2336bb11e
[DO NOT MERGE] GitHub Enterprise Server 3.0 release candidate megabranch (#16479)
4 years ago
3ea7737a9b
Update scroll-up.js
4 years ago
46c16001c3
Upgrade Primer with translation shim for trashcan icon (#18735)
4 years ago
b46da8dfc7
Sublanding page all guides section (#16869)
4 years ago
82407992d2
remove inactive sidebar links (#16500)
4 years ago
9722f2e8eb
Update javascripts/toggle-images.js
4 years ago
abee1fcf49
Add ChromeOS support in defaultPlatform frontmatter (#4102)
4 years ago
8b86fd8fef
Reduce minified JS bundle size from 189kb to 73kb (#17552)
4 years ago

README.md

You have to be logged in to leave a comment. Sign In

Javascripts

The code in this directory is destined to run in a web browser!

The index.js file in this directory is bundled by Webpack. In development, we use webpack-dev-middleware to bundle automatically while running the server. In production, we run webpack --mode production via npm run build.

This file is then referenced in the footer:

<script src="/dist/index.js"></script>

Every other file in this directory is written as a module to be required in index.js. They all have this format:

module.exports = () => {
  // Do some cool browser stuff
  // Note: by the time this runs, the DOM will be ready. :)
}

In development, the bundle will recompile every time a file used by javascripts/index.js is changed. This ensures that you're always getting an up-to-date version of the script.

In production, the bundle is compiled during build-time.

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...