Set a fine-mesh strainer over a heat proof bowl. Set aside. Pour oil into a shallow pan a half-inch high. Set pan over high heat until oil is lightly bubbling, about 2 minutes. Meanwhile, slice the shallots by peeling, slicing in half, then thinly slicing with the grain into a julienne. When the oil is bubbling, turn heat to low and add the shallots and stir. Don't be tempted to rush the process with high heat: cook, stirring and scraping the sides occasionally and adjusting the heat to maintain a gentle sizzle, 5-10 minutes.
When the oil stops bubbling and the shallots are starting to brown but still look raw, turn off heat. The residual heat will continue cooking the shallots. Continue stirring and flipping the shallots until they are a deep golden brown and crispy, another 1–2 minutes. Pour shallot oil through the strainer, reserving the flavorful oil. Gently shake the strainer to remove as much oil as possible, then transfer the shallots to paper towels to drain and cool in an even layer. As they cool down, they’ll crisp up. Note: Fried shallots can be stored a container, uncovered, at room temperature up to 2 days. Alternatively, store with a silica gel packet (available on Amazon) in an airtight container; shallots will stay fresh several weeks. Shallot oil can be stored in an airtight container at room temperature indefinitely. Makes about ¼ cup fried shallots and ½ cup shallot oil.
Use fried shallot oil for basting the Chiang Mai Roasted Chicken. It also works great in salad dressings. Save the fried shallots for garnishing dishes.