nt.parentNode; parent.removeChild(element); var script = document.createElement('script'); if (element.id) { script.id = element.id; } if (element.className) { script.className = element.className; } if (element.type) { script.type = element.type; } if (element.src) { script.src = element.src; // Force synchronous loading of peripheral JS. script.async = false; } if (element.dataset.pjax !== undefined) { script.dataset.pjax = ''; } if (code !== '') { script.appendChild(document.createTextNode(code)); } parent.appendChild(script); }); NexT.boot.refresh(); // Define Motion Sequence & Bootstrap Motion. if (CONFIG.motion.enable) { NexT.motion.integrator .init() .add(NexT.motion.middleWares.subMenu) .add(NexT.motion.middleWares.postList) .bootstrap(); } NexT.utils.updateSidebarPosition(); });