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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:45:49+00:00 2026-05-17T21:45:49+00:00

I code the game over at ninjawars.net , and have recently consolidated most of

  • 0

I code the game over at ninjawars.net, and have recently consolidated most of my (ugly) javascript code into a single object that gets re-used for the inner frame and the outer frame.

We were going to consolidate the same instance of jQuery as well (i.e. making it a Global so that it is accessible via $ everywhere, but is only 1 jQuery object, as opposed to what I believe is happening currently, which is that just including the jQuery library in the outer frame creates an instance of jQuery, and including in the inner iframe creates another.

Is it advisable to try to reuse a single instance (when a page is actually being loaded inside the iframe) of jQuery, and if so, how should I go about it?

  • 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-17T21:45:50+00:00Added an answer on May 17, 2026 at 9:45 pm

    If your inner <iframe> is going to reload as a new page (and, if it’s not, one might wonder what the point of the <iframe> is), then I’d say that trying to “consolidate” the jQuery objects is not a good idea if you’re trying to support older IE versions (at least up to 7, and maybe 8). IE is really picky about object lifecycles, and Javascript objects instantiated in one window but referenced in another can make those browsers really nervous.

    It’s not really that wasteful or bad to have two instances of jQuery. Let the performance problems – if any – come to you and manifest themselves before trying to do something difficult about it.

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

Sidebar

Related Questions

I have some amount of older game code that I am porting over to
I have a game code (from ioquake3 project) that compiles part of gameplay binaries
I've worked out most of the code and have several game classes. The one
So, I have a board game that uses Asynchronous socket to operate over LAN.
I have an underlying ruby game-engine code and I want to use the web
All, I am trying to code a Connect4 game. For this, I have created
The following code is a simple thread game, that switches between threads causing the
I have code like this to move the player in my game left, right,
I'm making a multiplayer flash game that has a lot of graphics/code. I'm having
The game is simple where the Pan object catches the Pizza objects that are

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.