Fork me on GitHub

javascript

    Not use time_ago_in_words

    10 Feb 2012

    Richard Huang

    It's very common for a rails developer to use time_ago_in_words to display time like "5 minutes ago", but it's too expensive to calculate the time in server side, you should utilize client cpu to calculate the time ago. Read More

    Tags 


    Put scripts at the bottom

    30 Aug 2010

    Richard Huang

    Do you experience that your website renders slow due to loading a lot of javascripts, especially loading some third-party javascripts? Move script tags to the bottom of body can speed up the render of your website. Read More

    Tags