Questions tagged [preload]

The term preload relates to techniques for improving performance by loading data/contents into memory/cache before processing or displaying it to users: preloading images in browsers to avoid delay in image rendering, preloading data from databases to RAM to avoid DB queries, and so on.

For preloading of Web resources, https://w3c.github.io/preload/ “defines the preload keyword that may be used with link elements. This keyword provides a declarative fetch primitive that initiates an early fetch and separates fetching from resource execution.”

Examples:

<link rel="preload" href="/styles/other.css" as="style">
<link rel="preload" href="/assets/font.woff2" as="font" type="font/woff2">
<link rel="preload" href="/style/other.css" as="style">
<link rel="preload" href="//example.com/resource" as="fetch" crossorigin>
<link rel="preload" href="https:…/x.woff2" as="font" crossorigin type="font/woff2">
<link rel="preload" href="app.js" as="script" onload="pDone()" onerror="plErr()">
1037 questions
-1
votes
2 answers

Save tableViewCell in an array, Cache UITableViewCell in an array

I am developing a tableView where each cell consists of AVPlayer and has the height of view.frame.size.height and paging is also enabled. so essentially it will work similar to tiktok application feed. The problem I am having is that I've to destroy…
Hassan Khan
  • 142
  • 1
  • 9
-1
votes
1 answer

Preload images from more then one file input

I find an methode to preload an image before uploading, but i have more then one file input. And i want for each input file to preload the image. In generell not a big problem but the amount how many file inputs are used on the website is not…
Laze Ho
  • 65
  • 7
-1
votes
1 answer

How can I preload images of B component in A component in Vue?

Lets say I have two Vue files, A.vue and B.vue. Inside A there is a router-link that points to B, which contains a lot of images that I'm downloading from Firebase realtime database. Every first time I navigate from A to B the images don't load as…
ihojmanb
  • 452
  • 8
  • 17
-1
votes
1 answer

How to Preload the Next Page of a Website into the Browser

I am looking to implement special functionality for my website, where loading a page that has multiple other consecutive pages (such as a search result) pre-loads the next page into the browser, accessible via the "forward" button. This sort of…
Alex Fanat
  • 748
  • 10
  • 22
-1
votes
1 answer

Displaying list of name from an array into a class

How do I preload(form1_load) and display the list of name inside of an array or loaded to a list then display it? This is what I got: private void Form1_Load(object sender, EventArgs e) { Random rand = new Random(); int index = 0; …
ki ng
  • 1
  • 2
-1
votes
1 answer

iOS App Preloaded Data Guidance

I'm working on an app with quite a few images and general information about them. Are there any general guidelines about when it is a good idea to just bundle the data with your app and when it should just be downloaded on first run? When you…
-1
votes
1 answer

Start Gif on Mouseover and then Pause Gif at it's end, and have info pop up after?

I have a cell phone img, it's broke then gets fixed then the screen pulls up a notepad(on the cell phone) I don't quite get how to make the mouseover turn the screen fixed then open the notepad on it with the "cart" information, how would this work?
-1
votes
4 answers

jquery how to alert after preloading image

hi i'd like to preload an image using jquery. After the image is preloaded there should be an alert message: "image preloaded" i tried the following code but it doesn't work: $("images/test.jpg").load(function(){ alert("Image loaded."); }); hope…
-1
votes
1 answer

As3 preload/render a single movieclip before addChild to stage

I have some problems. I want to preload a single movieclip instead of preloading the whole project. Is there a way to that. Concept Game. Intro Displayed - Intro removed - Title Dislplayed - Title removed "after pressing on screen" [[[[[[[PRELOAD…
-1
votes
2 answers

Can I save memory by preloading a bunch of jpeg images instead of bmp?

Possible Duplicate: How can I load 8 bit bmp with OpenGL? I need to load lots of images as many as possible, and then play them as animation. Therefore I want to minimize the size of each image. My question is if I load a jpeg image file, will my…
-1
votes
1 answer

Lazy Load jQuery, custom trigger event

Is it possible to force Lazy Load to 'preload' an invisible image that is connected with the Lazy Load Plug-In? So that wehen the image get's visible, it's already loaded. I've found only events that need an interaction like mouseover or click, but…
borzo
  • 1
  • 1
  • 1
-2
votes
1 answer

How can I print it out when data is added other than location.reload for localstorage?

I am storing the data with localstorage. But I have a problem like this. When a new data is added, that data does not appear before refreshing the page. So, how can I print it out when data is added other than location.reload for localstorage? //…
-2
votes
3 answers

Preload tag IMG without specifying the name of the images

I need a script that loads all images of a web page, and then displays it. I would like the script to preload all TAG and then make a web page visible. I have alrady tried script like JPreloader or a jQuery plugin, but the I want to write in an…
RavenJe
  • 129
  • 4
-2
votes
2 answers

How to preload images on refresh?

I have a code, which gets refreshed from mysql database on a button click. From the mysql I get links of images on refresh, but I never know, hat links and how many. I have a "loading" circle which spins until the page is loaded, but it is shown…
Hunnenkoenig
  • 193
  • 1
  • 2
  • 14
-2
votes
1 answer

AJAX Horizontal scrolling the page

I have to build a site like France24.com, There is a navigation on the left and two arrows on sides for scrolling to the sides. when you click on the arrows or one of navigation items , the related page (preloads) and appears without refreshing the…
1 2 3
69
70