It was an incredibly exciting time to be a writer on “Roseanne.”

The revived ABC sitcom was the No. 1 new show in the country, delivering an audience that network television had not seen in years. The show was quickly renewed for another season, giving everyone a sense of accomplishment, not to mention job security.

But for all the success, there was also a vague sense of foreboding. The writers’ social media accounts were flooded with negative comments. Articles posted online criticized jokes and plots. Their friends in the liberal enclave of Los Angeles would occasionally tsk-tsk that they worked on the show. And, of course, there was Roseanne Barr, the show’s star and co-creator, and her history of volatile public comments.

“It was hard for us once we started airing and we started to see some of the stuff that came out,” said Bruce Rasmussen, an executive producer of the series. “It was just brutal: ‘How dare they give her a show? How dare they write for her?’

“It was a certain amount of pressure,” he continued. “You’re the No. 1 show, and people are coming after you on the web and you’re getting attacked by 50 percent of the press.”