Hype wont load .js files


(David Guillermo Escalante Trinidad) #1

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)


(Greg) #2

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


(David Guillermo Escalante Trinidad) #3

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.


(David Guillermo Escalante Trinidad) #4

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


(Mark Hunte) #5

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>

(David Guillermo Escalante Trinidad) #6

so simple… it worked! Thanks.


(Greg) #7

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