optimize demo page