Improved style loading to avoid duplicate link tags