Load more than one .js file

Forums: 

Hello, cna I preload more than one .js file, not sure of the syntax if possible... Thanks!!

"preloadedJs": [    {      "path": "dist/h5p-course-presentation.js"    }  ],
BV52's picture

Hi Steven,

I'm no developer but I think a little bit of context on what you would like to achieve can help the community in figuring out how to answer. There could be more than one way of tackling your concern.

-BV

otacke's picture

Hi Steven!

Well, it's a json file, and given the square brackets it seems likely that the preloadedJS property expects an array as value, doesn't it?

"preloadedJs": [
  {
    "path": "foo.js"
  },
  {
    "path": "bar.js"
  },
  {
    ...
  }
}