So i have aquired my data from a external source, plaed it within a function and have it in a state which i can define it with JS variables. URL for images, some text strings, etc...
Now i have an fully designed site with filler images and ipsum text that was all for the design process.
How do i now replace the images via the js variable containing the url for the images and the text etc....
But this seems to show a second of the original image before replacing it with the queried new image...
Would i build the entire section of HTML code into document.write commands and insert the JS variables in that mannor?
what exactly is best practice for this? and of course most seamless for the end user.