I don’t know if it’s my connection or just because Im developing, but it’s not unusual for a page to load and consider itself loaded, before the stylesheet has loaded…. meaning no styling, just markup and javascript.
I came up with a solution, where the last line of the stylesheet gives the BODY tag position: relative and then in the jQuery file, there’s a utility that checks (on document ready) to see of BODY has position: relative. If not, it reloads the page. This works and impressed my client and co-workers (who often try to refresh before the latest stylesheet change has finished uploading), but strikes me as inelegant.
Has anybody found a more better solution?