• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Tb Ly And Html5
 

Tb Ly And Html5

on

  • 1,387 views

 

Statistics

Views

Total Views
1,387
Views on SlideShare
1,350
Embed Views
37

Actions

Likes
4
Downloads
82
Comments
0

1 Embed 37

http://www.slideshare.net 37

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Tb Ly And Html5 Tb Ly And Html5 Presentation Transcript

    • tb.ly 与 HTML 5
      用技术打破常规
      by 无锋 (@oasisfeng)
    • tb.ly,不一样的短网址
      • 再无失效的顾虑
      • 永不中断的服务
      • 唯一专属的网址
      • 手机访问的优化
      http://tb.ly/offline.html
    • HTML 5 - Offline Web Apps
      Morpheus: Welcome to the real world. --- The Matrix (1999)
    • Cache Manifest
      <HTML manifest=“offline.manifest“>
      CACHE MANIFEST
      CACHE:
      /.static/*
      FALLBACK:
      / /redirect.html
      NETWORK:
      /api/*
    • ApplicationCache interface
      interface ApplicationCache {
      readonly attribute unsigned short status;
      void update();
      void swapCache();
      // events
      attribute Function onchecking;
      attribute Function onerror;
      attribute Function onnoupdate;
      attribute Function ondownloading;
      attribute Function onprogress;
      attribute Function onupdateready;
      attribute Function oncached;
      attribute Function onobsolete;
      };
    • Basic Usage
      cache = window.applicationCache
      cache.update() throws INVALID_STATE_ERR
      cache.swapCache() throws INVALID_STATE_ERR
    • Browser Support
    • 平滑处理不同场景
      Oracle: The power of The One extends beyond. It reaches from here all the way back to where it came from.
      --- The Matrix Revolutions (2003)
    • 飘忽于网际的边缘
      在线
      离线
      Out of Service
    • 当 tb.ly 遇上 HTML 5
      Trinity: If you tell me we'll make it I'll believe you. Neo: We'll make it. We have to.
      --- The Matrix Revolutions (2003)
    • 短网址服务面临的问题
      Availability
      Reliability
      Speed
      Consistency
      Searchability
      “tb.ly” solves them all !
    • 发散的运用技术
      Offline Web Apps 技术可以做什么?
      Offline Gmail、Docs、Calendar……
      可以为淘宝带来什么?
      免费的纵深化CDN
      本机免登陆
      卖家交易记录的本地化搜索
      ……
    • tb.ly 诞生记
      Morpheus: Free your mind. --- The Matrix (1999)