Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Kevin Heis 46ccfc5d93
Run AB test on survey stars (#17861)
4 years ago
..
3df90fc9b8
Hello git history spelunker!
4 years ago
a3ad549e39
Block a few more things in AIRGAP (#17657)
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
8b86fd8fef
Reduce minified JS bundle size from 189kb to 73kb (#17552)
4 years ago
626bfa5918
Move the one performance metric in page to exit to avoid join (#17784)
4 years ago
46ccfc5d93
Run AB test on survey stars (#17861)
4 years ago
11d8e415da
Check repository references (#16680)
4 years ago
4038e9ca85
Add topic property and filter to guides page (#17328)
4 years ago
1918d2ea14
Inline CSRF token in HTML (#17748)
4 years ago
46ccfc5d93
Run AB test on survey stars (#17861)
4 years ago
cdb1e4a849
Convert em to mark in search results (#17391)
4 years ago
a3ad549e39
Block a few more things in AIRGAP (#17657)
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
a3ad549e39
Block a few more things in AIRGAP (#17657)
4 years ago
b46da8dfc7
Sublanding page all guides section (#16869)
4 years ago
82407992d2
remove inactive sidebar links (#16500)
4 years ago
c56065784a
Create a user agent parser for analytics (#15915)
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...