Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zayesh/stay

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zayesh/stay

Stay is a small but effective library for the creation of dynamic xhr-driven web applications.

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Stay

Build Status GitHub version npm version Dependencies

Stay is a small but effective JavaScript library for the creation of dynamic xhr-driven web applications.

Installation

Download the minified library and include it in your project:

<script src="/js/stay.min.js"></script>

You can also install this module with npm.

$ npm install @zayesh/stay

Usage

// Note: using require is not necessary with the browser bundle.
var Stay = require("@zayesh/stay");

var stay = new Stay({
 /* Default is ["content", "navigation"] */
 responseFields: ["myContent", "myNavigation", "myFooter"],
 /* Default is "/json" */
 infix: "/urlPatternForAsyncRequests",
 /* Default is 60000ms, 0 means no timeout */
 timeoutPost: 0,
 /* Default is 5000ms */
 timeoutGet: 0
});

stay.addEventListener("navigate", function()
{
 alert("Page navigation has started.");
});

stay.addEventListener("load", function()
{
 alert("The requested page has been loaded.");
});

Contributing

Maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Release History

Version: 0.0.0 (28.06.2015)

The module realizes a robust xhr-driven page navigation.

License

Copyright (c) 2015 Raoul van Rüschen
Licensed under the Zlib license.

Keywords

FAQs

Package last updated on 07 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc