Jump to content


Static resources: minify, aggregate, and CDN


3 replies to this topic

#1 JamesOakley

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 01 September 2014 - 07:05 PM

I'm just getting started with LiveZilla - and getting along well.

I'm integrating it using a pop-up overlay (rather than a button that opens the chat in a new window). I'm trying to minimise the footprint of having the chat widget, in terms of its impact on page loading times.

One question for the forum: Where, in the source, code, are the static resources loaded? I'm referring to the following:
  • /templates/jscript/jsbox.js
  • /templates/jscript/jsglobal.js
  • /templates/jscript/jstrack.js
  • /templates/overlays/chat/jscript/jsextern.js
  • /templates/overlays/chat/style.css
  • /templates/style.css
I'd like to do a number of things:
  • Aggregate all the 4 JS files into one single file
  • Aggregate the 2 CSS files into one single file
  • Minify both
  • Change the domain they are referenced on, so that I can load them through a CDN (for all the benefits of that, which I won't enumerate here).
Before I introduced the chat widget to the site, all the other CSS / JS resources were streamlined in that way, making them very efficient to load. The chat widget now has the slowest load time of all the components on the page.

So: Where are those resources added to the page? How would I go about changing the exact filenames that are referenced?

#2 Patrick Keil

    Administrator

  • Administrators
  • 3830 posts
  • LocationSingen, Germany

Posted 02 September 2014 - 11:40 AM

Hi James,

While I can't provide you with detailed instructions on how to realize this now, I can tell you that this will be an inbuilt feature of the upcoming service pack 5.4.x.

I expect this update to be released in late october / early november.

Thanks.

#3 IamZeus

    Advanced Member

  • Members
  • PipPipPip
  • 287 posts

Posted 04 September 2014 - 04:48 AM

vote for this to improve the page loading time which is ultimately the user experience

#4 JamesOakley

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 09 September 2014 - 12:19 PM

View PostPatrick Keil, on 02 September 2014 - 11:40 AM, said:

Hi James,

While I can't provide you with detailed instructions on how to realize this now, I can tell you that this will be an inbuilt feature of the upcoming service pack 5.4.x.

I expect this update to be released in late october / early november.

Thanks.

That's great to know - thank you.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users