freedive tips and tricks

Preload data for your users

There will be times when you want readers to see data immediately upon arriving at a search page. This is a relatively easy task to accomplish but it should be done with caution. Large amounts of data will cause poor performance.

When you first load a page with freeDive on it, you start out with something that looks like this:

freedive base url


If you leave the fields blank and click Search, you can see that "?fdall=true" is added to the URL.

freedive preload all data


All you need preload data is to add "?fdall=true" to the URL when you create a link to the page . If you are creating a link, the code would look like this:

<a href="">Search the database</a>

If you are using an iframe, the code would look like this

<iframe src="" width="600" height="800" frameborder="0"> <p>Your browser does not support iframes.</p> </iframe>

You can use the same technique to preset any search you like. To preload a search for "Brown," I could copy and paste the following:

preload brown search


A word of caution: Using this technique with large databases will do more harm than good. It will take a while for all the data to load and many readers will likely move on. Don't do this if you have more than several hundred records. And be sure to test on a slowish internet connection (perhaps at home) so that you can see if your users will be inconvenienced.