fix(bg): correct image to pre-load and optimized bg image

This commit is contained in:
nixa 2016-05-25 17:16:46 +03:00
parent e44109e380
commit 774bebfcd2
3 changed files with 2 additions and 2 deletions

View file

@ -58,6 +58,6 @@ export class App {
private _loadImages():void {
// register some loaders
BaThemePreloader.registerLoader(this._imageLoader.load(layoutPaths.images.root + 'blur-bg-mobile.jpg'));
BaThemePreloader.registerLoader(this._imageLoader.load(layoutPaths.images.root + 'sky-bg.jpg'));
}
}

View file

@ -8,7 +8,7 @@ export class BaImageLoaderService {
return new Promise((resolve, reject) => {
let img = new Image();
img.src = src;
img.onload = function(){
img.onload = function() {
resolve('Image with src ' + src + ' loaded successfully.');
};
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 MiB

After

Width:  |  Height:  |  Size: 510 KiB

Before After
Before After