Slice each onion in half from top to bottom and then slice into half-moons following latitude lines.
Add the oil to a skillet on medium heat.
Add the onions and stir to coat in oil.
Cover and cook for about 15 minutes, stirring several times.
Then add the garlic and thyme and cook, covered, for another 30 minutes, checking frequently (every 7-8 minutes) and stirring as the onions begin to caramelize.
Remove from the heat, remove the thyme sprigs, and season with ½ tablespoon of salt.
Preheat the oven to 350° F.
Slice the potatoes very thinly with a mandolin.
Butter a casserole dish and sprinkle with a few pinches of salt.
Arrange the potato slices in an overlapping pattern to cover the bottom of the casserole.
Sprinkle with salt and pepper.
Spread half of the caramelized onions over the potatoes.
Repeat with another layer of potatoes and season with salt and pepper.
Add the other half of the onions, spread across the potatoes.
Add a third and final layer of potatoes and season with salt and pepper.
Add chicken broth to just under the top layer of potatoes.
Dot with butter.
Bake, covered, for about 30 minutes.
Increase the oven to 400° and continue to cook, uncovered, for another hour.
When golden and bubbly, remove from the oven and allow to cool for about 10 minutes.
The potatoes are done when you can stick a knife into them and they give way perfectly with ease.
If you encounter any resistance, cook for a further 15 minutes.
