單頁 Web 應用引擎:Senna

jopen 10年前發布 | 16K 次閱讀 Senna 前端技術

Senna 是一個單頁 Web 應用的開發引擎。提供很多底層 API 讓你構建時髦的 Web 應用,只有大約 8k 左右的 JavaScript 包,無需依賴其他。

瀏覽器支持 IE 10+ 、最新版的 Firefox、Chrome、Safari 和 Opera。

Features

Senna is a blazing-fast single page application engine that provides several low-level APIs that allows you to build modern web-based applications with only ~8KB of JavaScript without any dependency.

單頁 Web 應用引擎:Senna

Bookmarkability & SEO

When using a single page app, sending a link to a friend should get them where we were. More than that, a search engine spider should be able to index that same content.

History Navigation

Forget hashbangs (#!), by using HTML5's History API we can manipulate the user's browser session history in JavaScript using pushState, replaceState and the popstate event. That way you can use browser's back/forward buttons again.

單頁 Web 應用引擎:Senna
單頁 Web 應用引擎:Senna

UI Feedback & Transitions

When some content is requested, it indicates to the user that something is happening. You can also define different kinds of CSS animations to use during state transitions.

Cacheable Screens

Once you load a certain surface this content can be cached in memory and be retrieved later on without any additional request.

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!