cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
866
Views
0
Helpful
3
Replies

Single Library vs Multiple Libraries

James Fuller
Level 1
Level 1

Single Library vs Multiple Libraries

Currently we're in an environment that was set up with a single ISF Library.  However, over the last 3 years in which we've been using this library, it has become quite bloated and oversized for a .js file.

We are looking for best practices on reducing file size.  We have thought about creating service specific libraries or something along those lines.

Can anyone provide what type of approach they've used?

3 Replies 3

Jeffrey Wood
Level 1
Level 1

We've moved away from using a single ISF file for all services.  Right now we've got the standard custom file which contains common ISF functions used by all services.   Then we've broken out specific functionality for service categories into their own custom ISF files.

For example, all of our ISF for ID services are in their own seperate .js file.  This helps break up the size of the file but also is handy when you have multiple people working on Service Design.

As we mov

James Fuller
Level 1
Level 1

To reduce the overhead on the client (javascript being client-side), we would like to be albe to dynamically attach the library to be used by service.

 For instance, when the user selects a service, the loader will only load a library specific to that service.  However, we don't want all service libraries loaded on every service.

The goal of this being that minimal code/libraries have to be pushed to the client, thus reducing load times for our "big" services and h

James Fuller
Level 1
Level 1

In relation to having multiple libraries, how do you attach all of the field level scripting for an individual service?

Do you have an automated attach routine or do you manually attach scripting?

I have been able to come up with a method to automatically attach a script library associated only with a particular service, but I'm still working on trying to update our automated attach routine to create/attach the field level functions.  Any insight someone would have in this area would be

Review Cisco Networking for a $25 gift card