Questions tagged [preloading]

Use preloading for questions related to programmatically requesting files or data using a heurestic or presumptive algorithm.

Preloading can be used to optimize the user experience based on events, hints, metadata, or user behavior analysis.

References

273 questions
2
votes
1 answer

WPF icon preloading

My application does a lot of work with currencies and so frequently makes use of 80-90 .ICO files I have as resources which are country flags, to represent each currency. Most screens use these and it seems a waste to keep reloading them for each…
NZJames
  • 4,963
  • 15
  • 50
  • 100
2
votes
3 answers

Custom Preloader in Flex 4?

Has anyone successfully implemented a custom preloader in Flex 4? In my experience, when I specify a custom preloader using the preloader="com.foo.MyPreloader" in the Application tag, the preloader does not display until the SWF is completely…
davr
  • 18,877
  • 17
  • 76
  • 99
2
votes
3 answers

Preloading SVGs in javascript

I am aware that javascript can make use of the Image() object to prime images before output, however I need the same functionality for SVGs. I don't want to be loading it into an "img" tag but rather building the SVG markup in javascript and…
Simon Willan
  • 103
  • 2
  • 9
1
vote
1 answer

How do I preload flash video and images?

I am working on a webapp that progresses through 'pages' via ajax. The content for each page is in an xml file, the app ajax's that xml file and builds the page from that, then spits it out to the browser. Some of these pages have video or large…
marcnewport
  • 91
  • 10
1
vote
0 answers

use nextgen gallery functions in a plugin

I am trying to write a simple Wordpress plugin to read an XML feed and put the data into a custom post. The data is from a property website. I can read all the information in and use wp_insert_post( $mypost, $wp_error ); to create the new post and I…
1
vote
6 answers

preloading background image on homepage

I have a homepage that contains a huge amount of php code to populate the divs (including newsletter sign up with validation, content from a mysql database and various static images). The whole page is built on top of a background cross fade…
JD2011
  • 213
  • 2
  • 12
  • 27
1
vote
4 answers

Preloading fonts and images?

On the home page of my site I'd like to preload fonts and images that are used on other pages of the site, to avoid FOUC's. What's the best way to do this? For fonts I currently have this code on my homepage but I'm sure there's a better way.
fxfuture
  • 1,910
  • 3
  • 26
  • 40
1
vote
0 answers

Laravel application keeps loading and nothing comes up

I have a problem with my Laravel application. When I execute the command: php artisan serve it returns me the message: Starting Laravel development server: http://127.0.0.1:8000 [Tue May 31 16:37:37 2022] PHP 8.1.6 Development Server…
Kraier
  • 101
  • 1
  • 1
  • 6
1
vote
2 answers

How to preload data before rendering react app

i use React location library. Want to get token from cookie if it exist then send it to server to check if it is active. My question is how i can do this once before rendering app regardless of route? i`ve tried something like this but it works only…
asus18019
  • 15
  • 4
1
vote
1 answer

can you load videos in flutter through an api?

I found this article to upload videos but it already has the urls of the videos written. I need to pass the videos through an api. Any ideas?? https://medium.com/@sanjeevmadhav03/preloading-videos-in-flutter-4b65cf0681c6
1
vote
0 answers

Trouble with random image preload

Hi I'm having trouble with image preloading. I made a Vue app that shows a random image out of five images on the background. I preload all five of them in my index.html. Causing the following error : The resource someImg.jpg was preloaded using…
Jip Helsen
  • 1,034
  • 4
  • 15
  • 30
1
vote
1 answer

jQuery Tablesorter w/ Pager plugin preloading images

I am using the TableSorter jQuery plugin with associated Pager plugin as well. I am having MySql query results displayed in this table. The thing is, after I retrieve a rating result from the query, I use this value to display a 5 star rating…
Brett Cohen
  • 161
  • 1
  • 4
  • 15
1
vote
1 answer

Does Cache work for partially loaded files?

This is not a "coding question", but more something like "how does it work?". Let's consider I want to show an heavy pic on page 2. If I'm preloading this pic on a page 1 (no display) and click on the page-2-link before it's fully loaded... What…
CHA
  • 21
  • 3
1
vote
2 answers

how to stop rendering twice (for non-data retrieving components) when using prerendering from _host.cshtml in Blazor?

I have some variables that initialize in the code segment in a razor page and they are initializing twice when I started doing the prerendering from the server using _Host.cshtml in the application. How can I avoid these initializations during the…
1
vote
1 answer

How to load all images before the game starts? (JavaScript, Preloader)

I've designed this game, it's my first project. It's a spin-off from "The Pig Game" in a JavaScript course. I tweaked the HTML and CSS templates of the Pig Game for the UI, but I did the game design and coding from scratch. You can play the game…