Closed (fixed)
Project:
Splide
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2022 at 16:55 UTC
Updated:
30 May 2023 at 01:44 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
maxmendez commentedHere a first approach
Comment #3
gausarts commentedThank you.
An obvious miss. Most are already converted to use dBlazy.once, except few like this one.
Once.js is only available since Drupal 9.3.
Blazy ecosystem still supports Drupal 8 and provides a D8-D11+ compat method named dBlazy.once.
The best route is to use once compat aka dBlazy.once as seen everywhere else at the Blazy ecosystem till we drop supporting Drupal 9.2 below, likely when D8 is no longer reported in use, or less than 15%.
Feel free to update and checkout the module splide scripts for dBlazy.once samples.
Comment #5
gausarts commentedCommitted with a bonus. Thank you for contribution.