I am seeking to utilize ng-href for loading different Themes.
One issue I am encountering is that the unstyled content appears before the stylesheet is applied.
I have created a Plunker where I made changes to Line 8 in the last 3 Versions for comparison.
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<link ng-href="//netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<link ng-href="//netdna.bootstrapcdn.com/bootstrap/{{styleVersion}}/css/bootstrap.min.css" rel="stylesheet">
When using ng-href
instead of href
, you can briefly see the unstyled HTML, which I aim to eliminate.
My question is whether it is possible to wait until the stylesheet is loaded, or if there exists a better solution for this dilemma than using ng-href
.