Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

ordering load of javascript files

Hi,

I've loaded Velocity JS and using it for various animations with no issues. I have added the additional velocityUI pack, and it comes after velocity js in the order of my javascript files.

The problem i am having is the console is telling me

"Velocity UI Pack: Velocity must be loaded first. Aborting."

why is velocity not loading before the UI pack, when they are in the correct order?

Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

ordering load of javascript files

I've managed to get around this by naming velocity (zvelocity). It then places it after velocity UI and works.

So i'm thinking that maybe they are ordered in reverse of what is seen in the builder?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

ordering load of javascript files

Hello Paul,

You are right.
It is possible to change the order only in AngularJS projects: https://docs.appery.io/docs/appbuilder-ionic-dependency-manager

Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

ordering load of javascript files

Hi Sergiy,

I spoke too soon, the workaround has now stopped working.

Are you telling me there is no way to workaround this problem in Appery Jquery build?

Loading Javascript plugins in order should be available no?

Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

ordering load of javascript files

I've managed to work around this again by trial and error with loading the javascripts, and trying different names for them.

The problem is it looks like the Appery builder is loading Javascript files randomly, which means that i'm going to have repeat this process in the future.

Is there any plan to allow correct ordering of javascript plugins in the future?

Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

ordering load of javascript files

Hi, any response on this?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

ordering load of javascript files

Hi Paul -

As a working workaround you can use emApp settings - External resources - User-defined resources/em

-- specify there a relative path to the resource loaded in the Source tab.

The order in which they are given, will be the same way for how they will be loaded.

Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

ordering load of javascript files

Hi Illya,

thanks for the quick response.

What would the path be if my folder structure is

WEB_RESOURCES
JS
velocity.js

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

ordering load of javascript files

It has to be like:

pre../js/velocity.js/pre

Paul Medawar
Posts: 0
Joined: Thu Apr 03, 2014 10:55 am

ordering load of javascript files

Hi Sergiy,

I'm going as stated (see screenshot) with no affect on load order?

Image

Return to “Issues”