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
  • Merge requests
  • !11369

Speedier jQuery and Twitter widgets.js

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/ssorallen/speedier-js-loading into master Nov 05, 2013
  • Overview 0
  • Commits 4
  • Pipelines 0
  • Changes 1

Created by: ssorallen

jquery.com uses Google Analytics and so sets a cookie when you visit the site. When you request jquery.js from its CDN, code.jquery.com, you take a hit from sending your previous GA cookie in the request.

Google's CDN, googleapis.com, never set cookies and so doesn't add overhead. It also is faster in my unscientific testing of a billion Command + Shift + R's.

Twitter's widget library has an async snippet to load the JS rather than a synchronous script tag. widgets.js was before other, important JS and slowed down document ready occasionally even on a decent connection.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/ssorallen/speedier-js-loading