Last active
December 2, 2022 18:28
-
-
Save adamjohnson/afd8eab0e9bd83eb84ed051728d2180f to your computer and use it in GitHub Desktop.
Revisions
-
adamjohnson revised this gist
Apr 7, 2021 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -46,6 +46,12 @@ and... -------------------------------------------------------------------------------- In blog format by Tobias Ahlin: https://tobiasahlin.com/blog/move-from-jquery-to-vanilla-javascript/ -------------------------------------------------------------------------------- Vanilla JS Doc Ready function: IE9+ (most simple) -
adamjohnson revised this gist
Jan 20, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -50,6 +50,7 @@ Vanilla JS Doc Ready function: IE9+ (most simple) https://stackoverflow.com/a/31171096/908059 ☝️ Browser support: https://caniuse.com/#feat=domcontentloaded NOTE: Some people want to if/else if DOMContentLoaded has [already been completed](https://github.com/nefe/You-Dont-Need-jQuery#5.0). ¯\_(ツ)_/¯ -
adamjohnson revised this gist
Jan 20, 2021 . 1 changed file with 7 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,17 +32,17 @@ A great list / 1:1 breakdown of jQuery Methods and what their modern API's look https://github.com/nefe/You-Dont-Need-jQuery These folks really broke it down well. Seems up to date too. -------------------------------------------------------------------------------- The ever classic: [youmightnotneedjquery.com](http://youmightnotneedjquery.com/) ([Github](https://github.com/HubSpot/YouMightNotNeedjQuery)) and... [youmightnotneedjqueryplugins.com](https://web.archive.org/web/20200319103848/http://youmightnotneedjqueryplugins.com/) ([Github](https://github.com/davidyezsetz/you-might-not-need-jquery-plugins)) -------------------------------------------------------------------------------- @@ -51,12 +51,9 @@ Vanilla JS Doc Ready function: IE9+ (most simple) https://stackoverflow.com/a/31171096/908059 ☝️ Browser support: https://caniuse.com/#feat=domcontentloaded NOTE: Some people want to if/else if DOMContentLoaded has [already been completed](https://github.com/nefe/You-Dont-Need-jQuery#5.0). ¯\_(ツ)_/¯ OR (mini function): https://stackoverflow.com/a/30757781/908059 OR IE6+ (full fleged function): https://github.com/jfriend00/docReady -
adamjohnson revised this gist
Mar 28, 2020 . 1 changed file with 12 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,16 @@ A well designed vanilla JS resource: https://codetogo.io/ ☝️ Can search via method name or the task you want to accomplish. -------------------------------------------------------------------------------- A great list of commonly used native JS methods and API's: https://vanillajstoolkit.com/reference/ ☝️ Stuff like DOM Injection, DOM Traversal, JSON, AJAX, and array API's -------------------------------------------------------------------------------- @@ -22,6 +22,12 @@ https://htmldom.dev/ -------------------------------------------------------------------------------- Some fancy JS snippets for very specific tasks https://www.30secondsofcode.org/js/p/1/ -------------------------------------------------------------------------------- A great list / 1:1 breakdown of jQuery Methods and what their modern API's look like: https://github.com/nefe/You-Dont-Need-jQuery -
adamjohnson renamed this gist
Mar 25, 2020 . 1 changed file with 0 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ A great list of commonly used native JS methods and API's: https://vanillajstoolkit.com/reference/ @@ -55,5 +54,3 @@ https://stackoverflow.com/a/30757781/908059 OR IE6+ (full fleged function) https://github.com/jfriend00/docReady -
adamjohnson revised this gist
Mar 25, 2020 . 1 changed file with 16 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,22 @@ https://vanillajstoolkit.com/reference/ -------------------------------------------------------------------------------- A well designed vanilla JS resource: https://codetogo.io/ ☝️ Can search via method name or the task you want to accomplish. -------------------------------------------------------------------------------- Accomplish common tasks with native JS: https://htmldom.dev/ ☝️ DOM manipulation, handling events, organized by task instead of API -------------------------------------------------------------------------------- A great list / 1:1 breakdown of jQuery Methods and what their modern API's look like: https://github.com/nefe/You-Dont-Need-jQuery -
adamjohnson created this gist
Nov 24, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,43 @@ /* A great list of commonly used native JS methods and API's: https://vanillajstoolkit.com/reference/ ☝️ Stuff like DOM Injection, DOM Traversal, JSON, AJAX, and array API's -------------------------------------------------------------------------------- A great list / 1:1 breakdown of jQuery Methods and what their modern API's look like: https://github.com/nefe/You-Dont-Need-jQuery These guys really broke it down well. Seems up to date too (~4 months ago last commit). -------------------------------------------------------------------------------- The ever classic: http://youmightnotneedjquery.com/ and... http://youmightnotneedjqueryplugins.com/ -------------------------------------------------------------------------------- Vanilla JS Doc Ready function: IE9+ (most simple) https://stackoverflow.com/a/31171096/908059 ☝️ Browser support: https://caniuse.com/#feat=domcontentloaded NOTE: Some people want to if/else if DOMContentLoaded has already been completed, ala: https://github.com/nefe/You-Dont-Need-jQuery#5.0 ¯\_(ツ)_/¯ OR (mini function) https://stackoverflow.com/a/30757781/908059 OR IE6+ (full fleged function) https://github.com/jfriend00/docReady */