using core/once since the core/jquery.once library is deprecated.
This is for the 1.x branch but we would want something similar on the 2.x branch as well.
Edited by Henry Odiete
This is for the 1.x branch but we would want something similar on the 2.x branch as well.