My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2233: CSS loading race condition
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Aug 2014


Sign in to add a comment
 
Reported by petsu...@gmail.com, Aug 8, 2014
Steps to reproduce:
* Open the fiddle demo: http://jsfiddle.net/peter_/gy6nk4a5/
* Note that the event is rendered in the wrong place. (It should be on June 1. Instead it appears between some other days.)

-----

The CSS is not loaded yet when the initial rendering calculations are performed.

Can the initial rendering be postponed somehow until the CSS is done loading?

(I load the CSS from Javascript for a web application plugin that is only activated when the <head> is already completed. This works fine for other Javascript / CSS libraries.)
Aug 14, 2014
Project Member #1 adamrs...@gmail.com
This issue is out of the scope of fullcalendar. it is an assumed precondition that the stylesheet is already loaded. if you are doing it dynamically, you must detect (on your own) when it is done. after that is when you should initialize fullcalendar. I believe there are some plugins out there on the internet that can detect this, but i haven't done any recent research.
Status: WontFix
Aug 15, 2014
#2 petsu...@gmail.com
OK, thanks for the explanation.

For the record, I ended up moving the fullcalendar initialization to the $(window).load() event to solve the problem for now.
Sign in to add a comment

Powered by Google Project Hosting