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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:43:35+00:00 2026-06-04T16:43:35+00:00

I mean, I use to have this widget : <script src=http://www.mywebsite.com/widget/widget.js?type=normal type=text/javascript></script> <div id=archie-container></div>

  • 0

I mean, I use to have this widget :

<script src="http://www.mywebsite.com/widget/widget.js?type=normal" type="text/javascript"></script>
<div id="archie-container"></div>

that check if jquery is on the hosted website; else it load it and do some ajax/jsonp request. As suggested by this tutorial.

Well, I’ve noticed big trobules about CSS parents, integrate other jquery plugins (like cycle) and manage data between this “interface” and the ajax call.

Why I should do it when I can use a sngle iframe? I also noticed that, if I load jquery from widget.js, and (of course) i put it into the iframe (so I can manage separate functions) the library are taken from cache. So there isn’t any overload.

Is it good enough for you this approch? Or I am missing somethings?

I also noticed that 90% of widgets (like FB, twitter, etc) use this strategy (with iframe).

  • 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-04T16:43:36+00:00Added an answer on June 4, 2026 at 4:43 pm

    An iframe keeps isolated from the rest of the page.

    I recomend read this:
    iframes vs ajax

    if something isolated from the rest of the page, and simple go with iframe. If the widget interacts with the rest of the page go AJAX.

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

Sidebar

Related Questions

I have this file from the theme of my Magento store: http://www.princessly.com/js/jquery/jquery-1.4.2.min.js And someone
With enum under .net the biggest number you can use is ULong. This mean
I have this new app I am creating that will use consumable in-app purchases.
I have this regex code I use in my code: pattern = re.compile('\d{3,4}(\/?)(\d{6,6})') m=
I have this fairly simple function to compute the mean of elements of a
So i have this PM system. At the recipient field, You can type in
I have this in the <head> : <meta http-equiv=X-UA-Compatible content=IE=Edge /> It will force
Okay, so I have this Silverlight client program. I'm not allowed to use the
I have this code to find the mean and standard deviation of some input
I mean, if I have this handler : $(document).ready(function() { $('.myElement').change(function() { // some

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.