Web sites built in Sitevision has always been very fast, but the performance has not always been reflected in performance measurement tools. Changes in the upcoming Sitevision 5 intends to change the latter. A lot of work has been done to up the scores and the overall experience of performance for users of all Sitevision web sites.
We have redesigned the structure of a typical Sitevision web page, moved all possible resources that block render to be loaded after first paint. We have also reduced the overall weight of resources, especially for web sites not using Social Collaboration.
Sitevision modules that use large third party libraries now load the libraries on demand. A Library will be loaded only when a module depending on it is present on the current page. Some libraries will not be loaded until a certain function is activated by the user.
The possibility to lazy load images below the fold has been added to the image module. When correctly used, this can dramatically decrease the loading times of large pages with a lot of images.
All web sites built with Sitevision will see a dramatic increase of its score in performance measurement tools, right out of the box after upgrading to Sitevision 5. With some tinkering, especially on pages with a large number of images, even better results can easily be achieved.
All these changes comes with some implications that Sitevision developers must be aware of.
Since Sitevision now lazy-loads libraries for some of its modules. Custom functionality depending on libraries previously included by Sitevision might stop working. An example is jCrop which now only loads when a user actively uses the image crop functionality. Such functionality must be changed to actively load the library it needs.
As of version 4.5.4, Sitevision includes a utility named svDocReady. Inline scripts that needs jQuery or any other library included from the page, will have to be deferred via svDocReady. Deferring with svDocReady guarantees execution order and that Sitevision's third party libraries have been loaded before custom scripts are executed.
Do you want to subscribe to News from Sitevision Developer team? Subscribe here!