Fry and crumble bacon in small pieces. Wash and cut broccoli into bite-sized pieces. In a small bowl, combine mayo, sugar, vinegar and onion and mix with a spoon. Sprinkle bacon on top of the broccoli. Pour the mayo/sugar/vinegar/onion over the top of the broccoli/bacon and mix completely with a spoon. Cover and refrigerate overnight.