Data-api initialization doesn't work properly with async loading approach
Created by: sergeyzwezdin
If you are using data-api intialization with async loading (Require JS, for example), there is may be an issue with affix, carousel and scrollspy plugins. From time to time this plugins won't be initialized.
This is because window load event used, instead of document ready. Once the plugin loaded into browser, document might be loaded already in async scenario and initialization handler never fires. The suggestion is to replace"$(window).on(load)' with "$(document).ready()" if there is no other objections.