Noisy will hang and consume as much CPU circles, as a available for intensities < 1 on certain sizes. Firefox (15) will ask to stop the script, Chrome (22) will sometimes notice for unresponsive tabs an offer to stop it, sometimes Chrome will just keep the script running till the tab is closed. Opera (12) also just keeps going, until the tab is closed.
I isolated this as a minimal test case:
'intensity' : 0.234,
'size' : 100,
'opacity' : 0.123,
'fallback' : '',
'monochrome' : true
I ran these tests to isolate intensity as the cause:
'size' : 99 hangs
'size' : 100 works
'size' : 101 hangs
'size' : 99 , 'intensity : '1.0 works
'size' : 100 , 'intensity' : '1.0 works
'size' : 101, 'intensity' : '1.0 works
'size' : 99, 'opacity : '1.0 hangs
'size' : 100, 'opacity : '1.0 works
'size' : 101, 'opacity : '1.0 hangs
'size' : 99
'size' : 100
'size' : 101
'size' : 99 , 'intensity : '1.0
'size' : 100 , 'intensity' : '1.0
'size' : 101, 'intensity' : '1.0
'size' : 99, 'opacity : '1.0
'size' : 100, 'opacity : '1.0
'size' : 101, 'opacity : '1.0
Fixed issue #22
Silly bug. Stemmed from only having tested multiples of 100 for the size option.
That was a silly bug.
It was getting stuck in an infinite loop when number of pixels (size * intensity) wasn't a whole number.
Thank you for letting me know, and for the excellent bug report.
Great, thanks for fixing this so quickly.
Since this was quite a severe bug and and the last pull to cdnjs/cdnjs was a year ago, would this be worth a release? Perhaps a bugfix release called 1.1.1?