Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6902399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:47:35+00:00 2026-05-27T07:47:35+00:00

I have a portfolio web app that is run on Sinatra using pjax .

  • 0

I have a portfolio web app that is run on Sinatra using pjax. If you click ‘WORK’ and go into each project, you’ll see the images load. I want the images to load in the background right when you visit masedesign.com.

Loading the entire site (approx. 25MB) will cost alot in terms of bandwidth. Perhaps I should load on the first images for each project.

How should I be preloading images in the img tag?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:47:36+00:00Added an answer on May 27, 2026 at 7:47 am
    var images = ['my.jpg', 'cool.jpg', 'images.jpg'];
    
    $.each(images, function(key, value) { 
        (new Image()).src = value;
    });
    

    it is using jQuery though, write less do more…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rewirte rule that rewrites my portfolio urls from portfolio.php?cat=cat-name&project=project-slug to /portfolio/cat/slug/
I have a portfolio application that lists projects and their detail pages. Every project
I have created the layout for my new portfolio webpage here: http://vitaminjdesign.com/work.html I want
I just designed a portfolio website. I have a whole array of images that
I am working on an ASP.NET MVC web app that allows people to publish
I have inherited a broad, ill-designed web portfolio at my job. Most pages are
I have taken up the banner of producing a portfolio for my web design/development
In my portfolio site I have listed my projects under separate tabs (tab menu).
On my portfolio page I have this setup: <div id=portfolio> <ul id=sites> <li> <h3><a
I have two classes, Portfolio, and PortfolioImage. class PortfolioImage(models.Model): portfolio = models.ForeignKey('Portfolio', related_name='images') ...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.