Skip to content

Tips

General Wen Development

Reload without browser cache

When working on Javascript or CSS files get used to always reload browser witouht cache.

Check for errors in dev-console

When there is anything unexpected, first check console-tab of your browser's devloper tools (F12) for errors or warnings.

Including Javascripts

Pass a unique variable value should force the browser to load latest script-version from server, not from cache.

1
2
3
4
5
6
7
<!-- file: hooks/header-extras.php -->
<script src="<?=PREPEND_PATH?>hooks/AppGiniHelper.min.js?v=<?=time()?>"></script>

<!-- same for your own additional javascript files -->
<script src="YOUR_JS_FILE.js?v=<?=time()?>"></script>

<!-- note: This will NOT work for your hooks/TABLENAME-dv.js not hooks/TABLENAME-tv.js files -->

Including Stylesheets

Same for your custom CSS files:

1
<link rel="stylesheet" href="YOUR_CSS_FILENAME.css?v=<?=time()?>" />