Closed vladsavchuk closed 6 years ago
I've created site.js to implement instant language switching through AJAX-request and location reload. I need this JS-file on every page, so I added to the /layout/sys_footer.html the following:
site.js
/layout/sys_footer.html
<script src="<~ROOT_URL>/js/site/site.js"></script>
Should we provide empty site.js and recommend to use it like site.css? I definitely don't want to add site-specific code into fw.js.
site.css
fw.js
well, some sites without much frontend coding might not require common site js at all. It's more like "recommendation" and just add to documentation
I've created
site.js
to implement instant language switching through AJAX-request and location reload. I need this JS-file on every page, so I added to the/layout/sys_footer.html
the following:Should we provide empty
site.js
and recommend to use it likesite.css
? I definitely don't want to add site-specific code intofw.js
.