Message between bg and popup optimized