Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fit.Loader: Memory leak due to link/script tags remaining in DOM after load #188

Open
FlowIT-JIT opened this issue May 22, 2023 · 0 comments

Comments

@FlowIT-JIT
Copy link
Collaborator

FlowIT-JIT commented May 22, 2023

Consider the following example:

Fit.Loader.LoadScript("path/to/script.js", function(src)
{
    // Do stuff here..
});

The function passed keeps a reference to everything in its closure because LoadScript(..) adds a <script> element to the page which holds a reference to the function for all eternity - or at least until the page is reloaded or closed. The same applies to Fit.Loader.LoadStyleSheet(..).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant