For JavaScript and HTML Web Resource now we can define dependencies, this makes sure that all the required dependent resources are loaded properly.
For HTML and JavaScript, we can define dependencies on other web resources type like CSS, HTML, JavaScript Libraries, RESX and XML. In case of JavaScript Web Resource we can additionally define dependencies on attributes of a specific entity (selected) as shown below.
Hope it helps..