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

  • Home
  • SEARCH
  • 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 494135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:28:10+00:00 2026-05-13T05:28:10+00:00

A site heavily using a main iframe I inherited a legacy codebase/website, http://ninjawars.net .

  • 0

A site heavily using a main iframe

I inherited a legacy codebase/website, http://ninjawars.net . The iframes were in place before I started coding on the site.

I constantly hear about the problems of iframes (security, accessibility, layout issues), and I’m pretty certain that iframes aren’t friendly for search engines (a big minus). My personal experience with iframes has mainly seen problems with their load times (heavy http requests, I guess?).

Searching for a replacement for iframes

Unfortunately, no-one who says “get rid of iframes” also gives an effective solution to my situation, generally assuming that a simple include of the content of the frame will make everything rainbows and unicorns (e.g. Converting from iframes). In my case, a static include solution does next to nothing for me.

jQuery load() (dynamically loads content into a div, for example) is a better fit, but doing a conversion to that method will take time, and doesn’t benefit accessibility for search engines, or non-javascript-browsing users. jQuery load() fixes the speed issue, but I’m not sure whether it fixes the accessibility issue. Even without javascript, the iframes still work (for manual clicks), though whether the extra support work of keeping the iframes working underneath the javascript is practical, I’m not sure.

Potential Alternatives?

  • jQuery & load()
  • Full rewrite of site to static pages with common header/footer/sidebar + some minor javascript polling.
  • ??? Something not yet considered by me ???
  • 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-13T05:28:10+00:00Added an answer on May 13, 2026 at 5:28 am

    Iframes are not the spawn of some unnamed demon, as some people would have you believe. They still have a very useful place for web applications.

    They definitely are bad for search engine optimization, however! I would never recommend that a “normal” public web site use them unless absolutely necessary, especially if SEO was a big concern.

    I would consider jQuery to be a good option for solving the accessibility issue. One of the great things about jQuery is that it is easy to make your site degrade gracefully for those users that don’t have javascript – like search engines.

    Basically the way I approach a new public web site with jQuery is the following:

    1. Build the site with static navigation. All content blocks that I would normally be getting from some ajax request (in your case, in an iframe), I make accessible in its own page. The “Contact Us” form is a great example – put it in it’s own page for non-javascript users, but it’ll eventually be loaded with ajax into a modal div for regular users. The static navigation ensures search engines see everything. In your case, replace the iframes with divs that just contain a link to the page that the iframe is currently loading.

    2. Add jQuery. Taking it one page at a time, start replacing all occurrences of static navigation links with the ajax calls to load the content you want.

    3. Refactor the javascript continually until you have minified it into a script that will work across all the navigation on the site.

    An example of a simple gracefully degradeable site is the following (taken from a site I worked on):

    $(document).ready(function() {
    
        $("#menu a[href]").each(function() {
            this.href = this.href.replace(/Index/, "Ajax");
        })
        .click(function() {
            $.get(this.href, null, function(data) {
                var $main = $("#main");
                $main.hide();
                $("#main").html(data);
                $main.fadeIn("slow");
            });
            return false;
        });
    

    This script runs in all pages on the site, replacing any occurrence of “/Index/” in the menu navigation target URLs with “/Ajax/”, which redirects the URL to resources that return ajax responses, and then adds a click handler that handles adding the content to the page.

    Now search engines and non-JS users can follow the static navigation, and JS users get a snappier UI with some effects.

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

Sidebar

Ask A Question

Stats

  • Questions 482k
  • Answers 482k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer No, if a class has a single argument constructor is… May 16, 2026 at 6:44 am
  • Editorial Team
    Editorial Team added an answer Back in the 2167A and MIL-498 days we called it… May 16, 2026 at 6:44 am
  • Editorial Team
    Editorial Team added an answer Well, this is just the way it works. You've only… May 16, 2026 at 6:44 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.