There are a few conversation about this topic, but no one that really can help me.
Here is a page I am modifying, using Wordpress: http://www.cargo-websites.eu/demo-1/voorraad/
For a Javascript integration I am adding a script tag in the <head>
tag of header.php:
<script type="text/javascript" src="http://voorraad.cargo-websites.eu/demo-1/voorraad/js/include.js"></script>
As soon as I add this code, the page returns the following errors:
Uncaught TypeError: Cannot read property 'scrollHeight' of null
at responseIt (include.js:5)
at window.onresize (include.js:4)
at Object.trigger (jquery.js:3)
at Object.a.event.trigger (jquery-migrate.min.js:2)
at jquery.js:3
at Function.each (jquery.js:2)
at a.fn.init.each (jquery.js:2)
at a.fn.init.trigger (jquery.js:3)
at theme.js:78
at theme.js:94include.js:5 Uncaught TypeError: Cannot read property 'scrollHeight' of null
at responseIt (include.js:5)
at window.onresize (include.js:4)
And consequently, the header-img on that page has disappeared.
I found a"how to" for fixing the problem but it's far beyond my knowledge. How can I solve this issue?