GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — github-docs/javascripts at main · sputier/github-docs

Expand file tree

/

javascripts

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

javascripts

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
deprecation-banner.js
deprecation-banner.js
 
 
display-platform-specific-content.js
display-platform-specific-content.js
 
 
events.js
events.js
 
 
experiment.js
experiment.js
 
 
explorer.js
explorer.js
 
 
get-csrf.js
get-csrf.js
 
 
google-analytics.js
google-analytics.js
 
 
helpfulness.js
helpfulness.js
 
 
index.js
index.js
 
 
localization.js
localization.js
 
 
nav.js
nav.js
 
 
print.js
print.js
 
 
search.js
search.js
 
 
sidebar.js
sidebar.js
 
 
wrap-code-terms.js
wrap-code-terms.js
 
 

README.md

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.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.