I'm just a simple UX Designer beefing up his code skills, so please forgive my ignorance and crappy code.
I'm rebooting my portfolio website. The original seamless grid was built using a Masonry like JQuery plugin. It's very sluggish though. http://jack-a-lope.net/Illustration.html
I decided to rebuild it using Masonry but was worried that the performance might still be bad, so I found an all CSS solution, that I hope loads faster. https://css-tricks.com/seamless-responsive-photo-grid/
I asked for some help on another website and was told the issue was not that the plugin was slow but that I was preloading 3mb of images. I've already resized all my images, and optimized them to the best of my ability, cutting out a pretty significant chunk of memory, and yet it's still loading slow. What am I doing wrong? Why is that larger websites can load so many images, but this code is choking up? Are there other things I need to do to optimize this? Is it just a matter of sticking a loading screen on the page or what?
[EDIT:] All images are already compressed and optimized. The images actually load decently fast, the problem is that I get a FOUC while the JS takes time to reformat the images etc.