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!