1/5 - Disable pull to refresh using CSS
2/5 - Hide HTML element natively
3/5 - CSS inset shorthand property for top/right/bottom/left
4/5 - Detect internet speed using Javascript
5/5 - Prevent user from pasting into input fields
I post very frequently on twitter related to frontend tips.
Support my content by following on
Twitter - https://twitter.com/frontend_jsx
Instagram - https://www.instagram.com/frontend.jsx/
Top comments (4)
Amazed that I hadn't heard about
inset
before, nice tip!I would strongly advise against disabling paste on input fields, including password ones. It just degrades user experience needlessly, especially for users of password managers (sometimes copy paste is still required if the auto-fill functionality fails or isn't available). Let users paste if they want to, and don't assume every user's interoperability or accessibility needs are the same.
totally agree lionel !.
Good stuff! I'll definitely try them out.
Thanks vaishnav ! Glad you liked my content.