Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
We3D26631yu can attach some triggers to the scroll event like when it's around the start of the post and when reached the last paragraph and measure the time which it took. just an example. there r other methods too ;]
-
And here I am, ignoring estimated time to read and just check the how long the article is lol
-
Hazarth94861yI mean, just find out the average reading speed by googling it. The units should be in Wpm (words per minute) and the divide the number of words in your article by that number.
Apparently the avg is 183wpm so an article of 500 words will take about 500/183 = 2.73 minutes on average. That's 2 minutes and 43 seconds.
You can measure your own wpm with a stop watch to get results specific to yourself. But if I understand correctly you want to add this functionality to your blog? In which case use the average wpm I gave you. It's like one line of JavaScript, no plugin necessary -
It appears to me that websites always show me 1/3 of the actual reading time. Probably so that potential readers are less discouraged by a long read time.
Technically you might be able to read it within the stated time but you don’t just read articles as fast as you can. You make pauses to think about and understand what you read. -
@msdsk reading is not only about pouring words into your brain. Usually the best part is when you stop and have your individual thoughts.
-
Just don't. You are wasting time on a metric that has already been ruined by others. Nobody will trust yours to be less a lie that the fake estimates of surveys and news sites.
-
nitnip18141ystep 1: google average reading speed (words per minute) and have it in your code as a constant like... AVERAGE_WPM
step 2: get the amount of words in your text. Doesn't need to be exact. A simple words = text.split(" ") is good enough
step 3: readingSpeed = Math.ceil(words / AVERAGE_WPM)
Related Rants
How to add estimated reading time blog post with out plugin.
question
code
dev
js
javascript