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-csswatch

v1.3.0

Published

A CSS Watcher plugin for jquery

Readme

jQuery csswatch event/plugin

http://github.com/leifcr/jquery-csswatch/

With jQuery css-watch, you can watch css changes

It uses requestAnimationFrame (webkitRequestAnimationFrame, mozRequestAnimationFrame, oRequestAnimationFrame, msRequestAnimationFrame) for polling and verifying if any changes to the CSS has been made for the given CSS attributes. It falls back to a timer in case the browser doesn't support requestAnimationFrame.

Documentation

For now, please see the tests and examples

Usage

This is both released as a bower component and a npm module, to suit whatever build tool/env you are using for your frontend.

Using npm

npm install jquery-csswatch
<script type="text/javascript" src="../node_modules/execute_method/dist/execute_method.js"></script>
<script type="text/javascript" src="../node_modules/jquery-csswatch/dist/jquery-csswatch.js"></script>

Using bower

Building

You need to setup grunt + npm to develop/build

  # install dependencies
  npm install

  # Build library, run unit tests and create minified version
  grunt

Examples

A working example can be found here: See http://leifcr.github.com/jquery-csswatch/examples/

Requirements

  • jQuery 1.8+

  • execute_method (http://github.com/leifcr/execute_method)

For building:
  • CoffeeScript 1.4 + (For building the library)

Development

Development is made in chrome and firefox on jQuery 1.8.2. Please fork, make a feature or bugfix branch and request a pull request. I'm sure there are bugs to be hunted down.

Testing

The library and unit tests needs to be built before testing. Direct compilation of coffeescript fails in some rare cases, and it's therefore better to compile before testing.

Currently these jQuery versions and browsers has been tested:

jQuery Versions

  • 1.8.2

Browsers Tested

  • Chrome 23
  • Chrome SxS/Canary (25.0.1337 (169859))
  • Internet Explorer 7,8,9
  • Firefox
  • Opera 11.6

Unit Tests

http://leifcr.github.com/jquery-csswatch/unit/

Release History

1.0 - (2012-11-22) Initial release

License

Copyright (c) 2012 Leif Ringstad Licensed under the freeBSD license.

Since it's free, please give me a thanks, beer, pizza, gadget or what you feel for.