This document introduces Kkotaro0111, a web designer and front-end engineer who enjoys JavaScript. It then discusses various ways to handle asynchronous functions in JavaScript, including using jQuery's ajax method, deferred objects, promises, and the $.when method to wait for multiple asynchronous functions to complete. It provides examples of using $.when to handle an unknown number of asynchronous calls.
The document demonstrates how to customize Middleman templates by adding CSS and JavaScript files. It shows a layout template that yields content and includes CSS and JS files. The CSS and JS files included are based on data from the page being rendered. This allows individual pages to specify additional CSS and JS files to load for that page.
This document introduces Kkotaro0111, a web designer and front-end engineer who enjoys JavaScript. It then discusses various ways to handle asynchronous functions in JavaScript, including using jQuery's ajax method, deferred objects, promises, and the $.when method to wait for multiple asynchronous functions to complete. It provides examples of using $.when to handle an unknown number of asynchronous calls.
The document demonstrates how to customize Middleman templates by adding CSS and JavaScript files. It shows a layout template that yields content and includes CSS and JS files. The CSS and JS files included are based on data from the page being rendered. This allows individual pages to specify additional CSS and JS files to load for that page.