jetheredge/SquishIt — Issue #139: Do not generate the rendered tag when only remote files were added
Author: rguerreiro
Created: 2012-01-24 11:08:01+00:00
State: open

In the case below we're getting 3 script tags, corresponding to the 2 remote files and the third to the rendered tag. But in this case the minified file is empty, therefore, it isn't needed.

```C#
var jQuery = Html.BundleJavaScript()
.AddRemote("~/Scripts/jquery-1.7.min.js", "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js")
```
Basically, the solution consists on checking if there are any files (files.Count > 0) in the RenderRelease() method, before generating the rendered tag variable.