0.0.1 • Published 7 years ago

soft-loader v0.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

SoftLoader

Loads content locally and replaces the state of the browser.

This module uses HTML5's History API, when you request contents through Ajax or WebSocket, you can use it to replace the content of the binding element, and change the URL and title of the browser without reload the page.

Install

npm install soft-loader --save

Example

SoftLoader.bind(".content");

SoftLoader.replaceWith("<div>Test content.</div>", "Document Title", "/url");
0.0.1

7 years ago