youtube / spfjs

A lightweight JS framework for fast navigation and page updates from YouTube
https://youtube.github.io/spfjs/
MIT License
2.23k stars 147 forks source link

Keyword for page-specific resources #442

Open ferndot opened 7 years ago

ferndot commented 7 years ago

It would be nice if there were a special name or attribute that could be used on page-specific resources that should be unloaded on navigation.

My use case is that there are pages that do not contain any page-specific resources, but also do not want the ones from other pages to be applied. Right now, I have to define blank resources to bypass the issue.

What do you think? Am I missing something?