make style loading sync