All Projects → porada → resizeend

porada / resizeend

Licence: other
Debounced JavaScript resize events

Programming Languages

javascript
184084 projects - #8 most used programming language
coffeescript
4710 projects
CSS
56736 projects

Projects that are alternatives of or similar to resizeend

eeglab plugin aar
AAR plug-in for EEGLAB
Stars: ✭ 18 (-70%)
Mutual labels:  deprecated
core-assert
Node.js `assert` as a standalone module
Stars: ✭ 27 (-55%)
Mutual labels:  deprecated
commerce-cif-magento
Adobe Commerce Integration Framework (CIF) Magento Integration
Stars: ✭ 41 (-31.67%)
Mutual labels:  deprecated
python-bandwidth
Public API for interfacing with Bandwidth from Python
Stars: ✭ 16 (-73.33%)
Mutual labels:  deprecated
papilo
DEPRECATED: Stream data processing micro-framework
Stars: ✭ 24 (-60%)
Mutual labels:  deprecated
PhotoPicker
Android Photo Picker
Stars: ✭ 27 (-55%)
Mutual labels:  deprecated
otc-tools
(Deprecated) Simple bash/curl/jq based command line tool using the OpenStack and OTC specific REST APIs.
Stars: ✭ 27 (-55%)
Mutual labels:  deprecated
jest-badges-readme
Creates a group of coverage badges from Jest into your README
Stars: ✭ 30 (-50%)
Mutual labels:  deprecated
authn
Prototype version of AuthN service. See: keratin/authn-server
Stars: ✭ 34 (-43.33%)
Mutual labels:  deprecated
kubernetes-flexvolume-vault-plugin
A kubernetes flexvolume plugin that injects vault tokens at pod creation
Stars: ✭ 16 (-73.33%)
Mutual labels:  deprecated
foundation-server
(v1) A scalable cryptocurrency mining pool server written in Node.js
Stars: ✭ 45 (-25%)
Mutual labels:  deprecated
cartesian ros control
DEPRECATED: A set of packages to bring Cartesian control functionality to the ROS-control framework.
Stars: ✭ 33 (-45%)
Mutual labels:  deprecated
dry-plugin
Jenkins dry plugin
Stars: ✭ 16 (-73.33%)
Mutual labels:  deprecated
marquez-web
Marquez Web UI
Stars: ✭ 23 (-61.67%)
Mutual labels:  deprecated
SAUCE
⛔️ DEPRECATED - System for AUtomated Code Evaluation
Stars: ✭ 25 (-58.33%)
Mutual labels:  deprecated
TiTsEd
A save editor for Trials in Tainted Space.
Stars: ✭ 86 (+43.33%)
Mutual labels:  deprecated
generator-pwa-angular-core
Progressive Web App using Angular 4, .NET Core, and Entity Framework
Stars: ✭ 22 (-63.33%)
Mutual labels:  deprecated
roweb
⛔ [DEPRECATED] Active at https://github.com/ropensci/roweb2
Stars: ✭ 18 (-70%)
Mutual labels:  deprecated
tls
🔒 Non-blocking, event-driven TLS built on OpenSSL & macOS security.
Stars: ✭ 26 (-56.67%)
Mutual labels:  deprecated
try-compose
Sample project to try Jetpack Compose early developer preview here and now!
Stars: ✭ 28 (-53.33%)
Mutual labels:  deprecated

resize:end Build Status

The blend of debounced resize event with orientationchange flavor. See the demo.

Example usage

window.addEventListener('resize:end', function(event) {
  // Your callback, e.g.
  console.log(event.type);
}, false);

How it works

The resize:end (and resizeend) event is dispatched in two cases:

Browser window has finished resizing

It’s the cure for those window.onresize skips that occur every pixel as long as you keep resizing your browser’s window. Details matter. performance++, too.

Changing device orientation resizes the viewport

Switching from portrait mode into landscape (and vice versa) triggers resize:end. If rotating a device doesn’t alter its viewport dimensions (e.g. rotating it upside down), the event isn’t dispatched, because there’s simply no need to.

Browser support

Tested in the following browsers:

  • Safari 6+
  • Chrome 20+
  • Firefox 14+
  • Opera 12+
  • Internet Explorer 9+
  • Mobile Safari on iOS 6+

Feedback

Any suggestions are welcome. You can also find me on Twitter: I’m @porada.

License

Distributed under MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].