NCH-2285 separated script-loading from the rest

https://nzzdev.atlassian.net/browse/NCH-2285