A calendar component runs its popup's rendering rules before its initializing javascript snippet

Can you post a simple reproduction page using standard objects? If so, we can take a deeper look at it internally?