How to initialize a block loader Magento 2
How to initialize a block loader Magento 2: Did you want to add loader into **templates/cart/totals.phtml**These some ways to add loader spinner into block or page. 1 Use: <div data-bind=”blockLoader: isLoadding”> /** Block Content HTML */ </div>, with this option you should add **isLoadding : ko.observable(false)** into your Component Example: Block XML Define Block templates.phtml CODE Script Javascript code: Namespace_ModuleName/js/componentjsfile 2: With <div class=”loader”> using rjsResolver js file named “Namespace_ModuleName/js/abc“ PHTML file