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: /\\ Block Content HTML \/ , 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 using rjsResolver js file named "Namespace\ModuleName/js/abc" PHTML file