U4-1521 - Updated back office to use ClientDependency bundles for common files

Created by Shannon Deminick 22 Jan 2013, 23:36:14 Updated by Sebastiaan Janssen 19 Dec 2013, 07:33:58

No, this is NOT ASP.Net bundles :) ... though has a similar functionality. Currently all CDF stuff in the back office is grouped in to one group meaning that we don't get performance benefits of say already loading all jquery libs. What we need to do to get this perf benefit is to put all jquery libs into a CDF group (bundle).


Simon Dingley 07 Nov 2013, 13:23:51

Working on this here - can someone take a look to see if I am on the right track https://github.com/ProNotion/Umbraco-CMS/tree/U4-1521

Shannon Deminick 10 Nov 2013, 23:01:25

I'll have a look today!

Shannon Deminick 19 Dec 2013, 02:42:44

It's a good start!

So what we're trying to achieve, for example is:

  • On the umbraco.aspx page we group all JQuery references like you've done (Group 0)
  • Then on any other aspx page that is asking for JQuery references, we'd group the same files and also assign to Group "0" - this means that the same bundle is requested which has already been generated and cached so all the processing has already been done = faster on both client and server

We can bundle all sorts of common scripts/styles to re-use on other pages.

Probably the easiest way to do this cleanly is to either:

  • Create a custom .Net controls for each bundle
  • Create a custom UserControl for each bundle

Then on any page we just reference these controls instead of the individual scripts. Also, to make it even easier, we can actually just reference an entier folder for a bundle instead of individual files.

Shannon Deminick 19 Dec 2013, 04:05:02

Have completed this all in rev: a43f4b7b7fdb98303b881e15ec0c279d1638dfe6

Priority: Normal

Type: Task

State: Fixed

Assignee: Shannon Deminick

Difficulty: Very Easy

Category: Editor

Backwards Compatible: False

Fix Submitted: Pull request

Affected versions: 4.8.0, 4.9.0, 4.10.0, 4.11.0, 6.0.0, 6.1.0, 4.9.1, 4.11.1, 4.11.2, 4.11.3, 4.11.4, 6.0.1, 4.11.5, 6.0.2, 4.11.6, 6.0.3, 6.0.4, 4.11.7, 6.1.1, 6.0.6, 4.11.9, 6.0.5, 4.11.8, 6.0.7, 6.1.2, 4.5.0, 4.5.1, 4.8.1, 4.10.1, 4.11.10, 6.1.3, 6.1.4, 6.1.5, 6.1.6

Due in version: 6.2.0


Story Points: