refactor: Move script parts around

- Run setup function in global script
- Move common script assets to hippie main template
- Remove unused scrcipt from components page
This commit is contained in:
sthag 2025-05-17 13:04:31 +02:00
parent 6cfe5b21e1
commit 8942dc3632
10 changed files with 17 additions and 52 deletions

View file

@ -72,11 +72,6 @@ tags:
{% block script %}
{{ super() }}
{# <script src="{{ pageBase }}js/{{ hippie.jsFile }}.min.js"></script> #}
<!-- build:js js/main.concat.min.js -->
<script src="{{ pageBase }}js/variables.js"></script>
<script src="{{ pageBase }}js/functions.js"></script>
<script src="{{ pageBase }}js/global.js"></script>
<script>
assetsLoaded = true;
logPerf('BODY :: Assets loaded, running page specific script...');
@ -84,7 +79,6 @@ tags:
// ------------------------------------------------------------------------------
$(document).ready(function () {
logPerf('EVENT :: jQuery \'ready\' event fired.');
setup();
});
logPerf('Application ready... not.');
</script>