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 8679961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:07:32+00:00 2026-06-12T21:07:32+00:00

I literally have a script like this: $(function() { $( sliderRange ).slider({ range: true,

  • 0

I literally have a script like this:

$(function() {
         $( sliderRange ).slider({
             range: true,
             min: 0,
             max: time2 - time1,
             values: [ 0, time2 - time1 ],
             slide: function( event, ui ) {
                ...
             }
         });
      });

which forms a tiny part of a complex web app.

The whole web app. does not need either JQuery or JQueryUI (which the snippet above requires)

It’s annoying to think that I must use JQuery and JQueryUI just for that tiny bit.
Is there a way to figure out the bit of code that I would have to import (since I probably use 2% of their functionality I’d rather get that 2% of the code inlined)

  • 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-06-12T21:07:33+00:00Added an answer on June 12, 2026 at 9:07 pm

    I don’t know if it really helps you out or not, but you could always conditionally load the jQuery library from the CDN only when it isn’t already available:

    <script type="text/javascript">!window.jQuery && document.write(unescape('%3Cscript src="http://code.jquery.com/jquery-1.8.2.js"%3E%3C/script%3E'))</script>
    

    Then you don’t pay the performance hit if the user has previously visited a site that uses the same CDN, and you’re not hosting the file yourself.

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

Sidebar

Related Questions

This is literally driving me nuts. I have 2 entities that use NSStrings as
I have the following code: <script type=text/javascript> $(function() { //div1 toggle function runEffect(){ var
This is my code: <script> function popupTest(title) { alert(title); return false; } </script> <a
I apologize if this is a duplicate. Let's say I have a JavaScript function
I have some code on a User Control that looks like this: <asp:PlaceHolder id=ph1
In my JavaScript code, I have to make a line like this (I use
I have a system setup like this: http://joemaller.com/990/a-web-focused-git-workflow/ However no matter how I configure
I have a Django template that contains a Javascript function, like so: <a class
I have a PHP script that runs through an array of values through my
In my career I have seen literally dozens of ways that people choose to

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.