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
  • #32668
Closed
Open
Issue created Jan 04, 2021 by Administrator@rootContributor

Docs: Don't load jQuery from 3rd party CDN for v4 Docs

Created by: coliff

Suggestion: on the v4 docs jQuery is loaded from the jQuery CDN (https://code.jquery.com/jquery-3.5.1.slim.min.js), with a local fallback. It'd be less HTML code and likely always better for performance if it always loaded jQuery locally. It'll save the cost of opening a new TCP connection (DNS resolution, TCP handshake and TLS negotiation). Browsers don't have Cross-Domain caching so there's no advantage in using a 3rd party CDN anymore (as your site is served from a CDN anyway). Good explainer here (with Bootstrap being used as the example): https://csswizardry.com/2019/05/self-host-your-static-assets/

Assignee
Assign to
Time tracking