Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.
This repository was archived by the owner on Oct 1, 2023. It is now read-only.

Remove scripts from DOM #3

Description

@zlalanne

Would be nice to be able to remove scripts from the DOM once the page/url changes. This way the DOM doesn't end up with a ton of script tags. Don't think this is a huge performance concern, just a nice feature.

Activity

  1. urish commented on Aug 30, 2014

    @urish
    Owner

    Would be nice indeed. Is there any proposed way to achieve this automatically?

  2. zlalanne commented on Sep 2, 2014

    @zlalanne
    ContributorAuthor

    Maybe keep track of the elements in an array as their loaded and on a route change remove from DOM. Haven't tried it yet though.

  3. vaneshmali commented on Jul 14, 2015

    @vaneshmali

    @zlalanne : Same, I want. Using Requirejs with AngularAMD. Want to remove script from DOM. If is there any solution for this then it will be better for me!

  4. soumak77 commented on Jun 20, 2016

    @soumak77

    I've been using this solution and it seems to work perfectly: http://stackoverflow.com/a/9425964

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

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