Line a 20 cm / 8-inch square tin, at least 4 cm deep, with parchment, leaving an overhang on two sides so you can lift the slab out later.
Combine the sugar, butter, milk, condensed milk, and salt in a 5-quart / 4.7 L heavy-bottomed saucepan. Heat over low, stirring constantly with a wooden spoon, for 8 to 10 minutes until the butter melts and no grit remains when you rub a drop between your fingers. Brush any sugar crystals off the pot sides with a wet pastry brush.
Clip a candy thermometer to the pot without touching the base. Raise the heat to medium and boil gently, stirring and scraping the bottom the whole time, for 15 to 20 minutes until the thermometer reads 116 C / 240 F and the mixture is deep golden.
Take the pot off the heat and stir in the vanilla. Beat hard with the wooden spoon for 8 to 10 minutes while the syrup is still hot, until it thickens, loses its gloss, turns grainy, and starts to leave a trail behind the spoon.
Pour the mixture into the tin right away, without scraping the sides of the pot, and smooth the top with the back of the spoon. Leave it for 20 minutes, then score a 6 x 6 grid with a greased knife to mark 36 squares. Let it set for 2 hours in total, then lift the slab out and cut along the lines.