Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reduce boot time in ionic-2 app

I am new to ionic-2 project.I just want to know how to reduce boot time of app.Because after 3 sec of splash screen , it shows white screen and takes 9 sec to start.

like image 238
Rohit Avatar asked Dec 27 '16 06:12

Rohit


1 Answers

Try to put this on the second line of your main.ts file

import { enableProdMode } from '@angular/core';

then before the bootstrap line put

enableProdMode();

also when building use --prod so ionic build android --prod

like image 192
clew Avatar answered Oct 05 '22 11:10

clew