script-loader: third try for crossplatform loading