mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
fix(bg): correct image to pre-load and optimized bg image
This commit is contained in:
parent
e44109e380
commit
774bebfcd2
3 changed files with 2 additions and 2 deletions
|
|
@ -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'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 |
Loading…
Add table
Add a link
Reference in a new issue