The best time to decorate for the Fourth is about two weeks before the holiday so you can enjoy your decorations for a while.
However, if you like to go all out with your decorating ideas, you can really leave patriotic decor up for the early half of the summer season. Start with your Memorial Day decor in mid-May, and then leave it up through Flag Day in mid-June, and Independence Day in July.