npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

jquery-angry-loader

v0.3.1

Published

crude, rude, fast internal site navigation

Downloads

9

Readme

jquery.angryLoader

Overview

Similar to Turbolinks and pjax, jquery.angryLoader enables fast navigation within your site. But jquery.angryLoader is impatient, and unsophisticated. Want to force a bunch of preemptive GET requests on your users for pages they might not visit, just so that, on the off chance they do visit them, they'll get to them really fast? Then jquery.angryLoader is for you!

Usage

Tell jquery.angryLoader the list of URLs you want to be fast, like so:

  $.angryLoader({
    urls: ['/', '/blog/', '/mega/']
  });

When someone first visits your site, once the initially visited page has been requested normally and the document is "ready", jquery.angryLoader caches the <body> content of the current page in memory (provided its root-relative URL is among the URLs you've listed), and then AJAX-requests HTML from each of the other URLs you've given it, and caches their <body> content as well. It also caches the content of each page's <title> tag. When the user clicks on any link that has one of the exact listed URLs as its href attribute, the browser will grab the cached <body> content for that page, swap out the current <body> content with the cached content, and set the page title accordingly, without any further HTTP request being made. Any links to URLs that not in the whitelist, however, will be handled normally.

jquery.angryLoader uses the HTML5 history API to manage browser history so that, for the user, it's just like they're navigating to a different page (but fast), with browser back and forward buttons working as per usual. If HTML5 history is not supported by the browser, however, jquery.angryLoader will degrade gracefully and do nothing at all, the links then just acting like links normally would.

Both when a new page is loaded from the cache, and on ordinary $(document).ready, the event angryLoader:load will be triggered by the document element. Note that if the current page content has just been cached (such as on a fresh site visit or browser reload), this event is triggered just after it is cached, but before the AJAX requests are made for the other pages. If you're using jquery.angryLoader the code you would normally run on $(document).ready should generally be run on this event instead, i.e.:

  $(document).on('angryLoader:load', function() {

    // Set up your click handlers and whatnot...

  });

jquery.angryLoader is probably best suited to sites with only a few pages that aren't too big. It is probably a bad idea to make your users GET a tonne of data which they'll probably never see.

Installation

Using bower:

  bower install --save jquery-angry-loader

Using npm:

  npm install --save jquery-angry-loader

Ensure jQuery is sourced somewhere before jquery.angry-loader.js.