Made quick popups on jquery, like this:
popupHead = $('<div class="ad__popup-head"></div>') There are about 10 such tags, then I put them into each other with the append function and at the end
$('body').append(popup); This is what I quickly came up with. Now I think how to improve this scheme. There are options. 1. Load all the necessary windows at once on the page with all html, but hidden. By clicking show them accordingly. 2. Create these windows in js, as I do now 3. Create a file with this markup, and upload it to the site by clicking.
In principle, option 2 is normal, but it looks as wrong as it seems to me. 3 I think the most correct option, but then you have to turn once more to the north. Tell me how to do better in this case? maybe there is some other option.