Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Add filesBlacklist to avoid preloading certain files #16

Merged
merged 2 commits into from Feb 24, 2017

Conversation

jackfranklin
Copy link
Contributor

For example, sourcemaps should not be preloaded.

This is configurable via the filesBlacklist option. This would be a
breaking change, but you could easily avoid that by making the array
empty and just advising people on how to add it in the docs.

@addyosmani I needed this so I could use this in a project - thought I might as well make the PR. I'm happy to work on the README and stuff if you do want something like this in the project - else no problem!

@jackfranklin jackfranklin mentioned this pull request Feb 13, 2017
@addyosmani
Copy link
Contributor

@jackfranklin Implementation LGTM. Could you add a commit with some README content? Thanks for the PR!

@addyosmani
Copy link
Contributor

@jackfranklin Fyi, we just merged a change that will require a rebase against master. Hope you're still interested in landing this :)

For example, sourcemaps should not be preloaded.

This is configurable via the `filesBlacklist` option. This would be a
breaking change, but you could easily avoid that by making the array
empty and just advising people on how to add it in the docs.
@jackfranklin
Copy link
Contributor Author

@addyosmani rebased and tests updated - definitely up for this to land! Just writing README.

@addyosmani addyosmani merged commit d123908 into GoogleChromeLabs:master Feb 24, 2017
@addyosmani
Copy link
Contributor

👍

@laysent
Copy link
Contributor

laysent commented Feb 27, 2017

@jackfranklin thanks for the feature @addyosmani any chance you could release a version for this new feature? I would like to use that in my project. Thanks in advanced!

@addyosmani
Copy link
Contributor

@laysent done! new version out :)

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

Successfully merging this pull request may close these issues.

None yet

3 participants