Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Benchmark borks if there are no script tags on the page.  #142

Description

@stffrd

You can consider this a wild edge case (and feel free to close as wont-fix), but I'm working on building a performance app for funsies, and I'm using a Vdom library in conjunction with benchmarkjs.

For the longest time I was mounting my app straight onto document.body (wherein I load my single script tag bundle), meaning the script element gets wiped on mounting, but stays in memory so it's able to be executed, but then the offending function is the attempt to inject a script tag next to the first found script tag

This, again, is an extremely unlikely use case, that being that for some reason you'd want to axe all of the script tags on a page, but I just wanted to have this documented somewhere in case someone runs into a similar problem and has a google-fit trying to search for a solution.

I might try my hands at a PR when I get some time. :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions