Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • 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
  • Bootstrap
  • bootstrap
  • Issues
  • #8560
Closed
Open
Issue created Jul 22, 2013 by Administrator@rootContributor

Give clear error message when jQuery is missing

Created by: cvrebert

To avoid bug reports like #8547 (closed) (and having been confused for a minute myself when accidentally forgetting to include jQuery a couple times; Chrome's built-in $ in the debug console really doesn't help), I'd like to suggest including a tiny bit of JS (in the combined bootstrap.js only) along the lines of:

if (!jQuery) {
    throw new Error("Bootstrap's JavaScript requires jQuery, but jQuery isn't loaded.");
}

to make the error perfectly clear and apparent.

Assignee
Assign to
Time tracking