Skip to content

Unable to use evaporate.js in a web worker #308

@m-andrew-albright

Description

@m-andrew-albright

Due to the way evaporate.js parses a url into a uri object (see https://github.com/TTLabs/EvaporateJS/blob/master/evaporate.js#L1981) by using document.createElement('a');, it cannot currently be used in a web worker without some modifications (such as pulling in jsdom, which I have not yet tried so I can't guarantee it works).

Currently, we are using AWS Signature V2, and calculating the MD5 on large file uploads causes our UI to stutter and stop responding until the uploading is finished; this is the reason we are trying to use evaporate.js in a web worker in the first place, so if there is some workaround to this performance issue, I would greatly welcome any recommendations.

Thanks for the awesome library!

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