Firefox behaves this way because of the insufficient RAM in your computer or because of the scripts running on certain pages. In 90 % of the cases, Firefox stops responding where there are are errors with Java and Javascript scripts running on that page. When you browse and encounter those issues, simply Stop the script when Firefox prompts you to do so.
Additionally, press Alt then go to Help > About Firefox and check for any available updates. If there is a new version, proceed with its installation, then revisit the website with problems and Firefox should load normally now.