The feed 4 entries
RSS feedMost developers when using HTML inputs with type="number" assume the input value …
Cavallino-Treporti, Italy
Most developers when using HTML inputs with
type="number"assume the input value will be a number, and get confused when the value is a string instead. This is because the type=“number” actually tells the browser that the input is used for numbers and to provide a number input UI with included built-in validation to reject non-numerical entries.Now to get the number almost everyone will use the good old parser functions
parseInt/parseFloat, like this:parseInt(input.value, 10);But, there is a less-known property called .valueAsNumber which allows us to avoid parseInt/parseFloat functions, for example:
input.valueAsNumberHow cool is that!
How to Section Your HTML
Embedding YouTube Videos Without Impacting Web Perf
Improve the page loading performances caused by YouTube iframes with a few simple HTML and CSS tricks.
Speeding up static websites with PJAX
How to improve the performances and enhance the user's experience of static websites (Hugo, Jekyll..) using the PJAX technique.