Skip to content

If a script is loaded twice, only one callback is called #64

@fresheneesz

Description

@fresheneesz

When a script is loaded twice in a row, only one of the callbacks is returned.

$script('test.js', function() {
  console.log("hi")
})    
$script('test.js', function() {
  console.log("hi")
})

The output is only one "hi". If I instead set the second one with a timeout of 1 second, both callbacks are called. This is majorly broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions