Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A a11yproject.com
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The A11Y Project
  • a11yproject.com
  • Merge requests
  • !1262

Load scripts only on pages that need them

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged EJ Mason requested to merge feat/load-scripts-as-needed into main Apr 29, 2021
  • Overview 4
  • Commits 7
  • Pipelines 0
  • Changes 2

Summary

This PR:

  • creates a checklist.js script, with all the code relevant to enhancing the checklist
  • changes the base.njk template so that checklist.js and contact.js only load on relevant pages
  • appends a version hash to contact.js
  • deletes dead code previously used to enhance mailto links, as discussed in #1260
  • deletes main.js, as there is currently no js that should run on every page
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feat/load-scripts-as-needed