issue #1088: add onResLoadingErr for preload file