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 ???