Skip to content

Warning recommends using willReadFrequently attribute #1

@FlippingBinary

Description

@FlippingBinary

I am using the MorphCast AI SDK with this repository's code, which has been converted to TypeScript. However, I am getting a warning that might not be specific to the React integration. The warning message is as follows:

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.

The warnings originate from the ai-sdk.js file.

I have searched for a way to make this change locally, but I could not find one. Could someone please help me resolve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions