1. Accessing the Feature:
- The developer logs into the Portal site and navigates to the omniSite \ Configure \ Library to access interface via the dashboard.
2. Adding a New Library:
- The developer clicks on Add, inputs the URL of a desired CSS or JavaScript file (e.g., `https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js`), and submits the form for approval.
- The system validates the URL and detects that it is a JavaScript file.
3. Configuring the Library:
- The developer configures loading options (e.g., setting it to load asynchronously).
- They specify the order of inclusion to ensure it loads before other scripts that depend on jQuery.
4. Managing Libraries:
- The newly added library appears in the Library List, where the developer can see its details, edit the configuration, or remove it if needed. It will be approved by Omnibasis support team in 24 hours. If you need to be approved immediately create a support ticket.
5. Error Handling:
- If the URL is invalid or the library fails to load, an error message is displayed, guiding the developer to correct the issue.
6. Security Measures:
- The inclusion of the library respects the site's CSP settings, and any harmful scripts are sanitized to prevent security risks.
By using this feature, developers can efficiently manage external CSS and JavaScript libraries, ensuring their site remains functional, secure, and up-to-date with the latest web technologies.