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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:44:27+00:00 2026-05-31T23:44:27+00:00

I am including jQuery in background_page like this, <script type=text/javascript src=libs/jquery.js></script> Here’s the problem:

  • 0

I am including jQuery in background_page like this,

 <script type="text/javascript" src="libs/jquery.js"></script>

Here’s the problem:

In websites, where jQuery plugins are used (with jQuery.extend method), they do not work when my extension is installed.

I guess this is because I had my jQuery.js over ‘their’ jQuery.js’ file and all .extend do not work.

So, I thought of adding jQuery.js only when its not avaialable. So, I tried adding jQuery like this,

<script type="text/javascript">
        if (typeof jQuery == 'undefined') {
            var script = document.createElement('script');
            script.type = "text/javascript";
            script.src = "libs/jquery.js";
            document.getElementsByTagName('head')[0].appendChild(script);
        }
    </script>

But no luck.

Can someone suggest me a good way to add jQuery.js file in background page.

  • 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-31T23:44:28+00:00Added an answer on May 31, 2026 at 11:44 pm

    Found an answer later,

    Doing
    jQuery.nocConflict

    jQ = jQuery.noConflict
    and replacing $ with jQ everywhere, solved the problem.

    Conclusion: content_scripts can also interfere with webpage javascripts.

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

Sidebar

Related Questions

I've been using jquery 1.3.2 to pull snippets of html (including script) from a
I've been using various javascript frameworks including mootools, jquery, prototype and scriptaculous and have
I have a LI with some information, including some links. I would like jQuery
I see examples where JavaScript code including jQuery and jslint use the notation below:
I was wondering if there's an easy way with javascript (including JQuery, which we're
I have a third party script that is including jquery (which causes things to
I am having an issue with this jquery css: Like this it works in
I want to use jquery-ui widgets and so I am including jquery.ui.js. Would I
I'm developing a web application using ASP .NET MVC 1.0 and jQuery (including the
my jquery code not run with IE6 but runs all others including IE7. It

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.