Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6827455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:16:03+00:00 2026-05-26T22:16:03+00:00

I was looking at the SO source code to see how they are doing

  • 0

I was looking at the SO source code to see how they are doing the div on the right side bar that changes from relative to fixed position.

I saw that the SO JS library is pretty much all included into the page with this code below…

My question is how is the code included like this, is this something like the RequireJS or labJS javascript code that loads the files only when they are needed or something like that?

<script type="text/javascript">
StackExchange.using.setCacheBreakers({
    "js/prettify-full.js": "0324556b7bf7",
    "js/moderator.js": "a38ca3c6143d",
    "js/full-anon.js": "8fcefa158ad3",
    "js/full.js": "a168b3deac0f",
    "js/wmd.js": "688233b2af68",
    "js/third-party/jquery.autocomplete.min.js": "e5f01e97f7c3",
    "js/mobile.js": "97644ef9b7d4",
    "js/help.js": "7f83495f785a",
    "js/tageditor.js": "75954ba7b6f1",
    "js/tageditornew.js": "9d9998359a54",
    "js/inline-tag-editing.js": "364e12111b4b",
    "js/mathjax-editing.js": "a47e02eb0282",
    "js/revisions.js": "63c88065da1f"
});
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:16:04+00:00Added an answer on May 26, 2026 at 10:16 pm

    My question is how is the code included like this, is this something like the RequireJS or labJS javascript code that loads the files only when they are needed or something like that?

    Yes, but not one of the two – it’s a very tiny home-grown solution. The snippet you posted just lets the JavaScript know what cache breakers to use if including a file; it doesn’t actually include them. That only happens when the file is actually needed.

    I wrote a blog post that gives some insight into what’s happening there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been looking at the source code of raphael.js and I see a
I'm looking at source code from Funambol, but the dependencies are so huge, I'm
I am looking though some source code from a third party and am repeatedly
Looking at the source code of pstats I see this syntax: print >> self.stream,
I'm looking for the whole source code of all the C standard libraries. That
I've been looking at some Lua source code, and I often see things like
I'm looking for source code for a web based study group. I'd prefer something
I was looking a source code of a particular page of my project and
I was looking at the source code of java.uti.concurrent.locks.AbstractQueuedSynchronizer and the acquire() method looks
I'm looking for the source code of Sun's standard java compiler, javac . jdk1.6.0_07

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.