Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iframe #53

Open
juzhiyuan opened this issue Jul 10, 2018 · 0 comments
Open

iframe #53

juzhiyuan opened this issue Jul 10, 2018 · 0 comments

Comments

@juzhiyuan
Copy link
Owner

juzhiyuan commented Jul 10, 2018

优点

  • 实现长连接:Comet
  • 跨域通信
  • 历史记录管理
  • 无刷新文件上传
  • 沙箱隔离(不受宿主js、css影响)
  • 独立的带有交互的内容,比如幻灯片、富文本编辑器
  • 可复用的导航栏

缺点

  • 它是没有语义的
  • 即时内容为空,加载也需要时间
  • 会阻塞主页面的Onload事件
  • 页面样式调试麻烦,出现多个滚动条
  • 浏览器的后退按钮失效
  • 过多会增加服务器的HTTP请求
  • 小型的移动设备无法完全显示框架
  • 产生多个页面,不易管理
  • 不容易打印;
  • 代码复杂,无法被一些搜索引擎解读
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant