Hype wont load .js files

This is the same code I have in another hype file but here it refuses to work, I have no idea why. I’m using the same .js files I have been using in other projects. The script files are supposed to make the video play in the site body background.

Safari reports:

Any idea whats happening?

213213.hype.zip (830.5 KB)

I don’t see jQuery.3.1.1.min.js in the resource pane, does it need it?

Yeah it need jquery, but the included jquery.js have been working just fine in the past, but I have also tried with the last version of jquery from the official website and it doesn’t work either.

Here you can find a working hype file using those exact same .js files:

The problem is that the Jquery.js is loading after the jquery.backstretch.js

If you look in the head file you will see the load order.

<script type="text/javascript" src="${resourcesFolderName}/jquery.backstretch.js"></script>
<script type="text/javascript" src="${resourcesFolderName}/jquery.js"></script>

Remove the jquery.backstretch.js from the resources and then re drop it in. The loading will then look like this

<script type="text/javascript" src="${resourcesFolderName}/jquery.js"></script>
<script type="text/javascript" src="${resourcesFolderName}/jquery.backstretch.js"></script>
3 Likes

so simple… it worked! Thanks.

1 Like

Good catch Mark, I forgot about checking the load order.

2 Likes