Plugin Documentation
Asynchronous AJAX
From version 1.2.0 and greater, Spanish Quote of the Day includes an new parameter that allows you to use the asynchronous fetching operation mode to connect to the database and collect the quotes. To activate the Asynchronous mode simply go to the Settings > Spanish Quotes and check the checkbox Asynchronous Mode.
Activating this parameter, Spanish Quote of the day doesn’t fetches the quotes directly but that, it just enqueues a litle jQuery code inside the HTML footer of the page that works in the client side and fetches the quotes from the database and processes the oEmbed response. This little jQuery module works via a common AJAX call.
The asynchronous fetching operation mode improves the load page time in the server side because it moves the process of fetching the quote to the client side. That’s fantastic, but remember that this could be incompatible with some client systems and, in addition it’s a much less stable process so, we advise do not activate the asynchronous mode unless your website truly has a high volumen of hits by day. By default, the asynchronous mode is disabled.
Remember that in the asynchronous mode the filter raw_quotes is not available because the elements of a quote (text, author…) are inserted directly into the HTML code via jQuery. And additionally remember that if you have changed the classes or the structure of the HTML of the quotes through one of your own filters, probably the asynchronous module can’t insert the oembed response into the page.
Be careful if you want to use the asynchronous mode and your own customized filters at the same time.
Install Now
DemoDownload NowWordPress plugin pageImprove your themes, install now Spanish Quote of the Day.