Front-End Optimization: Enable Resource Delivery Via CDN

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000087024-front-end-optimization-enable-resource-delivery-via-cdn

The Front-End Optimization: Enable Resource Delivery Via CDN advanced setting enables additional optimization of the website performance by having any CSS  or Javascript resources that are referenced on all pages to be served from https://www.optimizecdn.com


If set to OFF, the system will use relative paths from the domain, but if turned ON it speeds up the delivery of resources vs. the relative path of the domain name. 


To activate the setting go to Settings > Advanced Settings: 


Front-End Optimization: Enable Resource Delivery Via CDN



This is a recently added update to our software, for which we added code to the following default widgets:


  • Bootstrap Theme - HEAD
  • Bootstrap Theme - Footer - Scripts
  • Bootstrap Theme - Footer - Scripts - User Search Scripts


If the site has one or more of these widgets customized the system will check if the website has these custom widgets and if each widget does not have present brilliantDirectories::cdnUrl(). If one or more of these widgets are missing this code, a pop up will display with a recommendation:


And the setting will display a warning indication which of these widgets need to be updated or disabled:



To fix this, there are a couple of options:


1. Disable the custom widgets that are indicated in the warning message.

2. Keep your custom widget, making sure to include the  brilliantDirectories::cdnUrl() code, by comparing the custom and default widgets and adding it in the right section.