[JavaScript] Asynchronous Processing Problem
[JavaScript] Asynchronous Processing Problem Recently, even after completing the edwith Boostcourse, I couldn’t understand why callback hell occurs. I finally understood it while working on a Naver page. Problematic Process Click the Tab UI. Display the total list count 2-1) Request the total list count via Ajax API. (If cached, go directly to 2-3) 2-2) Cache the received API data. 2-3) Display the total list count using the cached data. Show the items under the UI tab 3-1) Request product information (items) via Ajax API. (If cached, go directly to 3-3) 3-2) Cache the received API data. 3-3) Display the product information using the cached data. This was the process, and I implemented it as follows: ...