Site Map

 

iCents.Run Function

The iCents.Init function initializes iCents at the beginning of the code of the web page. However, paid-links will normally only show their prices after the page finishes loading, sometimes right after the DOM is created, but sometimes only when all images are downloaded. If a page has large images, it may take a while for it to fully load and, in this case, the paid-links will take some time to work.

The iCents.Run function is optional. You must include this function at the end of your page's HTML code if you want paid-links to work faster, even before page images load.

Syntax:


<script>iCents.Run()</script>

 

Note for advanced JavaScript programmers: We have implemented Dean Edwards' solution to the window.onload problem, which would in theory remove the necessity of iCents.Run. However, there are a few occasions, in a few browsers and operational systems, when this solution does not work. So we are keeping the optional iCents.Run function for the moment.