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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:48:04+00:00 2026-05-16T23:48:04+00:00

When building a jQuery plugin, do you think it’s bad practice to embed the

  • 0

When building a jQuery plugin, do you think it’s bad practice to embed the source of another plugin or library that it depends on?

It seems to me that it’s a better way to go than requiring users to do multiple <script src="..."> calls or compressing the multiple source files themselves.

  • 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-16T23:48:04+00:00Added an answer on May 16, 2026 at 11:48 pm

    I would stay away from embedded in most cases, especially if you’re depending on another jQuery plugin. Some cases to consider:

    • What if I’m already using that plugin, a newer version, an older one?
      • At best you’re adding the download weight twice, possibly a different version
      • At worst you’re breaking my code 🙂
    • What if I’m trying to debug, is a bug in your plugin?, the other?, still yours because you included it?
      • Which author do I contact?

    There are few upsides to this besides saving a few <script> tags, which should be cached on the client anyway…and in my case as well as many others (like SO) the scripts get compressed into one or a few requests.

    Most jQuery plugins require dependencies to be added with their own <script> tags, in this case by not going with what most do serves more to confuse or complicate rather than save time. Personally, I’d stay away from the embedding, but to each their own.

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

Sidebar

Related Questions

I'm looking for some input on how to implement custom eventhandling in jquery the
Hey all, I'm looking at building an ajax-heavy site, and I'm trying to spend
I'm building an app and have no intentions of support IE6 at this time.
Ironically, for an IT contractor, I find myself building a website for a recruitment
We are writing a SaaS like solution that requires our customers to SCRIPT SRC
I'm looking for some direction on a script that I'd like to build. Essentially,
I'd like to create a custom control in javascript. The goal is to create
I am working on a task to enable image uploading and auto-scaling(from full sized
I'm using Zend_Navigation (sweet addition to the framework, btw) to build my menu, after
There are a ton of PHP frameworks out there (i.e. Zend, Seagull, Symfony, CodeIgniter,

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.