Drupal.behaviors.js_mod = {
attach: function (context, settings) {
//$('body', context).append(chart);
// $( '#drupal-myradar', context ).once
$.get( "/web/js/mod", function( data ) {
console.log(data);
});
}
}
})(jQuery, Drupal, drupalSettings);
Essentially this code is running multiple times while grabbing information from my controller code. I only want this to print out once to the console when the page is loaded.