PageSourceSearch

https://scriptsbundle.com/wp-content/themes/startnext/assets/js/woo-cart-ajax-script.js?ver=1.0

js scriptsbundle.com collected 2026-09-24 09:01:40 UTC 1,447 bytes, 48 lines download raw bytes

1jQuery(document).ready(function($) {
2    // AJAX function to update mini-cart count
3    function updateMiniCartCount() {
4        $.ajax({
5            url: wccustomAjax.ajaxUrl,
6            type: 'POST',
7            data: {
8                action: 'startnext_update_mini_cart_count',
9                wcsecurity: wccustomAjax.nonce
10            },
11            success: function(response) {
12                $('.mini-cart-count').text(response);
13            },
14            error: function(error) {
15                console.log(error);
16            }
17        });
18    }
19
20    // AJAX function to update mini-cart count after cart update
21    function updateMiniCartCountAfterUpdate() {
22        $.ajax({
23            url: wccustomAjax.ajaxUrl,
24            type: 'POST',
25            data: {
26                action: 'startnext_update_mini_cart_count_after_update',
27                wcsecurity: wccustomAjax.nonce
28            },
29            success: function(response) {
30                if (response.success) {
31                    $('.mini-cart-count').replaceWith(response.data);
32                }
33            },
34            error: function(error) {
35                console.log(error);
36            }
37        });
38    }
39
40    // Call the AJAX function when the page loads
41    updateMiniCartCount();
42
43    // Trigger mini-cart count update after cart update
44    $(document).on('updated_cart_totals', function() {
45        updateMiniCartCountAfterUpdate();
46    });
47});
48

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.