thenewbie
V2EX  ›  问与答

单页面应用( SPA) div 和 iframe 的性能问题?

  •  
  •   thenewbie · Jan 4, 2015 · 3283 views
    This topic created in 4235 days ago, the information mentioned may be changed or developed.
    背景:内部用的一个小网站,不用考虑seo,安全性等各种问题,
    形式上类似单页面应用,页面上有几个标签页,点击会异步加载标签页的内容,
    每个标签内数据量比较大。

    问题:单纯考虑到性能问题的话,每个标签里的内容是直接放到 div 里面,还是扔到 iframe 里面更好呢?
    1 replies    2015-01-04 10:31:26 +08:00
    fewspider
        1
    fewspider  
       Jan 4, 2015 via Android   ❤️ 1
    div吧,设置一下overflow,跟iframe功能也差不多了,没必要用iframe
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3328 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 00:40 · PVG 08:40 · LAX 17:40 · JFK 20:40
    ♥ Do have faith in what you're doing.