Mozilla - Brendan EichMozilla has announced that its CEO Brendan Eich has resigned in the wake of the controversy surrounding his prior support of an anti-gay marriage law.

The company noted in a post that standing for both equality and free speech is difficult. Mozilla also apologized for not handling the situation well and taking too long to engage with the community on the issue.

Executive Chairwoman Mitchell Baker told Re/code that it was indeed Eich’s decision to leave, though he had faced “pressure from all sides.”

Eich is credited with creating the JavaScript programming language and is one of the original founders of Mozilla. He served as the CTO of the Mozilla Corporation for years, but it wasn’t until he was appointed as CEO last month that employees and the public raised an outcry about his views.

Earlier this week, dating site OkCupid briefly displayed a popup message to visitors using Firefox urging them to boycott the browser.