Gravity needs seperate bodies of mass to exist and so does capillary (you meant this right?) attraction. They are both natural phenomenon resulting from mass's existance so i'd have to say that both would come into play around the exact same time that mass formed.
Bookmarks