Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

define([], function () {
return (function () {
function ldinsp(){
if(typeof window.__inspld != "undefined") return; window.__inspld = 1; var insp = document.createElement('script'); insp.type = 'text/javascript'; insp.async = true; insp.id = "inspsync"; insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://cdn.inspectlet.com/inspectlet.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(insp, x); };
window.__insp = window.__insp || [];
__insp.push(['wid', <<your_inspectlet_id>>]);
requirejs.config({
baseUrl: '/js',
deps: ['main', 'inspectlet'],
paths: {
//other paths
'inspectlet': 'apps/inspectlet/inspectlet',
//jquery below is only as example - not needed
'jquery': '../bower/jquery/dist/jquery',
'jqueryui': '../bower/jquery-ui/jquery-ui',
},