ember-fastboot / ember-cli-head

Ember Cli Addon for Adding Content to HTML Head
MIT License
98 stars 34 forks source link

Remove jQuery usage from the browser initializer and test suite #25

Closed pgrippi closed 7 years ago

pgrippi commented 7 years ago

I'm on a mission to remove jQuery from my Ember app. This addon uses jQuery to remove all elements between the two meta tags that get injected (as well as the meta tags themselves).

This PR uses native DOM methods to walk the siblings between the start and end tags and removes all nodes between them. This is IE9 compatible, but let me know if there are any changes you'd like to see