Nostalgic Perogi Monogramming
Have ideas to improve npm?Join in the discussion! »

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

Keywords

Install

npm i soft-loader

DownloadsWeekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • avatar