This package has been deprecated

Author message:

this package is never useful

soft-loader

0.0.1 • Public • Published

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");

/soft-loader/

    Package Sidebar

    Install

    npm i soft-loader

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • ayonli