Front-end Software Designer @ Solita
- Kaarina, Finland
-
22:39
(UTC +02:00) - @Haprog
Pinned Loading
-
hash-actions
hash-actions PublicA small utility lib for working with the "hashchange" event and "window.location.hash". Makes it easy to define actions that happen when the user "enters" or "exits" specific URL fragments on the p…
JavaScript
-
A version of querySelectorAll() that...
A version of querySelectorAll() that also recursively looks into all shadow roots 1/**
2* A version of querySelectorAll() that also recursively looks into all shadow roots.
3* @param selector Selector
4* @param root (Optional) Scope of the query (Element or Document). Defaults to the document.
5* @returns
-
Utility methods for loading a script.
Utility methods for loading a script. 1/**
2* Load the given script.
3* (appends a new <script> tag to the end of the main document's <head> tag)
4*
5* @param {string} src URL if the script to be loaded
-
Rate Limiting JavaScript Function Call
Rate Limiting JavaScript Function Call 1// Returns a new function that will call the given "func" at most once every "wait" milliseconds.
2// Based on debounce function from: https://davidwalsh.name/essential-javascript-functions
3function rateLimit(func, wait) {
4var waiting = false;
5return function() {
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.