bwip-js icon indicating copy to clipboard operation
bwip-js copied to clipboard

willReadFrequently attribute

Open 500Foods opened this issue 3 years ago • 2 comments

Just happened to notice this message in the console...

Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently s.image @ bwip-js.js:36905

Wondering if this is something that should be set in code somewhere, or if it was deliberately not set for some reason?

500Foods avatar Oct 12 '22 23:10 500Foods

Curious. Which browser generated that message? I will add it to the next release.

metafloor avatar Oct 13 '22 14:10 metafloor

Added to v3.2.0. Please let me know if this resolves the console message you were seeing. I was not able to reproduce.

metafloor avatar Dec 06 '22 23:12 metafloor