Configure widget loading order in Service Portal
Configure service portal pages to defer load the widgets on a page. The delay in loading of non-essential widgets helps to improve page loading speed and optimizes the use of resources.
Before you begin
Role required: sp_admin or admin
Procedure
Navigate to All > Service Portal > Service Portal Configuration.
Select Designer.
In Service Portal Designer, select a page.
On the page, hover over the widget that you want to defer load.
Select the Form icon
Image omitted: Form\_icon.png
Form icon to open a new form.
Form icon to open a new form.
Select the Select the check box to defer load this widget check box.
Complete the fields in the form.
| Field | Description |
|---|---|
| In which order do you want to load the widget? | Select Viewport if you want the widget to load when it appears in the page view. Select Parallel to have the widget load after the page loads. |
| Device type | Select the type of device \(desktop, tablet, and mobile\) on which you want to defer load widgets. |
| Advance placeholder configuration | Select the check box to dynamically define the height and width of the widget. |
| Placeholder dimensions | Specify the height and width of the widget in each of the selected device types with the following code: |
| Limit widget size to placeholder | Select the check box to retain the original placeholder dimensions and avoid layout shifts. |
| Placeholder Template | Define the custom skeleton loader. A default code is already available and can be edited for customization. |
- Select Save.
Result
Deferred loading of the widget is enabled.
- Deferred loading of AI Search assets in Service Portal
Deferred loading of AI Search on the Service Portal delays the loading of certain AI Search assets until the main page content is loaded. This delay helps the page to load faster, thus improving user experience in the portal. st.
Parent Topic:Using portal widgets