var harmarAjax = { ajaxurl: 'https://harmar.com/wp-admin/admin-ajax.php', security: 'c5084d8462' }; var liftDesignation = ''; function loadScript(url, callback) { var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = url; script.onreadystatechange = callback; script.onload = callback; // Fire the loading head.appendChild(script); } /*************************************** will need to change this to the production server **************************************************/ function loadPartnerJS() { loadScript( 'http://haim.loc/wp-content/plugins/harmar_calculator/includes/class/vehicles/js/partner_include.min.js', null ); } loadScript( 'https://code.jquery.com/jquery-3.4.1.min.js', loadPartnerJS );