Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to load JavaScript after Ajax has loaded?

<script>
    require(['jquery', 'Magento_Customer/js/customer-data', 'domReady!'], function($) {
        'use strict';

        $(document).ajaxComplete(function( event, xhr, settings ) {
                console.log( settings.url );
        });
    });
</script>
Source by magento.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #How #load #JavaScript #Ajax
ADD COMMENT
Topic
Name
9+9 =