node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

scrollbarwidth

scrollbarWidth.js

Get scrollbar width.

ScrollbarWidth.js

Use

  • Set scrollbarWidth.js.
<script src="scrollbarWidth.min.js"></script>
  • Init function & get scrollbar width.
// Init web global
scrollbarWidth(); // 17
 
// You can also use with jQuery
$.scrollbarWidth(); // 17
 
// Or AMD/Node/CommonJS
var scrollbarWidth = require('scrollbarWidth');
 
scrollbarWidth(); // 17

License

Released under the MIT license.