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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:50:03+00:00 2026-06-15T13:50:03+00:00

Are there any performance differences when I would load up a formatted element through

  • 0

Are there any performance differences when I would load up a formatted element through an iframe or via an ajax call retrieving json data and let javascript put it in a html design? I tend to look at how major websites are doing it and i noticed that ebay uses a lot of iframes. On the homepage there are like four iframes, one of them is obvious though since it’s an advertisement.

Also, within an iframe i can’t access the parent’s javascript files although it’s on the same domain, so within the iframe i have to load the .js file again. I wonder whether this is a technical issue or safety precaution in terms of XSS which is still weird because it’s on the same domain… An example is the jquery .js distribution file, I have to load this in both the parent and the iframe. Would browsers use the parent’s cached version of this or download the whole .js file again?

  • 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-15T13:50:04+00:00Added an answer on June 15, 2026 at 1:50 pm

    This is actually a number of questions.

    First I’ll address overall speed:
    Short answer: it depends. There are a number of factors here.
    Ajax method – probably faster to load the data from the server, slower to display client-side.
    IFrame method – probably slower to load from server, faster to display client side.

    I would think the trend towards using iframes for ads is more to do with security concerns and overall design requirements.

    Within the iframe, if it loaded from the same domain as the parent, you should be able to do parent.$ or parent.jQuery. See this question.

    Caching introduces a whole extra layer into this. Caching will probably happen, though it really depends on browser settings or proxy settings even.

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

Sidebar

Related Questions

Would there be any performance differences between these two chunks? public void doSomething(Supertype input)
Are there any differences in performance or load/caching behavior when displaying images in img
I would like to know, if there are any performance differences using NFS instead
I would like to know is there any difference in performance between these two
Is there any performance differences between string.Format and String.Format ? As far as i
I was wondering if there are any performance differences when using simple queries as:
Is there any performance benefit/technical differences between calling EF SaveChanges() in a foreach loop
Are there any differences when it comes to performance between the following three border
Are there any differences in performance by setting the Root View Controller in IB
I would like to know if there are any differences in between the two

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.