How to lose weight (in the browser)
The definitive front-end performance guide.
Remember to add references on each tip that you write at References wiki.
How can I locally run the project?
Open your terminal and download DocPad through this command:
sudo npm install -fg docpad
- Now clone it:
git clone email@example.com:<your-github-username>/browser-diet.git
- Then go to the project's folder:
- Install all dependencies:
- And finally run:
Now you can see the website running at
How can I run another language version?
Simply go to the docpad.coffee file and change the value of the
Then you just need to run
docpad run again.
This project uses DocPad, a static generator in NodeJS, and here's the basic structure:
. |-- out/ |-- src/ | |-- documents | |-- files | |-- layouts `-- package.json
This is where the generated files are stored, once DocPad has been run. However, this directory is unnecessary for versioning, so it is ignored (.gitignore).
Contains all tips in Markdown (.md) format.
Contains images, fonts, CSS and JS files.
Contains the default template.
Lists all NodeJS dependencies.
- Briza Bueno (Americanas.com)
- The 56 Geeks Project by Scott Johnson