In E.B. White's "Charlotte's Web," Wilbur is initially hesitant about Charlotte's dietary preferences, as he's used to a more traditional farm animal diet of slop and scraps. However, he soon realizes that Charlotte's menu serves a useful purpose beyond just satisfying her hunger. As he watches her eat insects, he notices that she only chooses those that are harmful to the other animals in the barn, such as flies and gnats. Wilbur initially finds this strange but begins to appreciate the benefits of Charlotte's insectivorous diet when he sees that her choices actually rid the barn of annoying pests.
Later in the book, Wilbur realizes the full extent of Charlotte's campaign against insects when he witnesses her spinning her web and writing messages in it. He sees her web as a tool to spread the word about his special qualities, which ultimately saves him from being slaughtered. Wilbur is grateful for Charlotte's campaign and recognizes that her efforts were not only sensible and useful but also life-saving.
In conclusion, Wilbur's realization that Charlotte's campaign against insects was sensible and useful shows how he learns to appreciate the value of her actions beyond his initial aversion to her unconventional diet. He comes to see her as a friend and ally, who uses her unique abilities to protect him and his fellow barnyard animals.