Tom Holland was not allowed to read the script for this movie, since he revealed too many secrets for Spider-Man: Homecoming (2017). In one of the promotional videos for the movie, several of its cast members are in an interrogation room refusing to reveal any spoilers, and Holland's mouth is conspicuously taped shut.
Mark Ruffalo revealed that he was given a fake script due to his habit of accidentally spoiling past Marvel movies. He jokingly claimed in an interview that the fake script was better than the real one.
(at around 1h 20 mins) Drax's line "I'll do you one better: Why is Gamora?" was ad-libbed by Dave Bautista. In an interview, Dave says that Chris Pratt actually gave him the idea for the line.
Doctor Strange has been studying for a few years since his solo movie, and is now considered one of the more powerful characters in the Marvel Cinematic Universe. The writers also wanted to have him come off as sort of "the adult in the room" throughout the movie.
Tom Holland said that although he is a big fan of Chris Pratt and loved working with him, their scenes together were often challenging. Pratt's tendency to joke in and out of character made it hard for Holland to keep a straight face at times.
Stan Lee: (at around 18 mins) The comic book writer who co-created most of the characters featured in this movie is featured here as Peter Parker's school bus driver. In addition, this movie also contains several callbacks to Stan's past cameos: Tony Stark uses the flip phone that Stan delivered to him in Captain America: Civil War (2016); Thor still sports the haircut that Stan gave him in Thor: Ragnarok (2017); and when Stan asks "What's the matter with you kids? You've never seen a spaceship before?", he is referencing the Chitauri attack that he witnessed in The Avengers (2012).
Stephen McFeely: (at around 54 mins) Film's screenwriter makes a cameo alongside William Hurt during his conference call.