Remove SCROLLBAR_WIDTH fn check IIFE
noeldelgado opened this issue · comments
Noel Delgado commented
If for some reason, the script was loaded on the head
, the scrollbarWidth
fn check will thrown an error due to the immediately-invoked function expression (IIFE) making the lib unusable.
Removing the IIFE and checking the scrollbarWidth
until instantiation will remove that error.