PHP Form Builder Class / Examples / Synchronous Resource Loading

Version: Released:

Synchronous Resource Loading - This project's render function loads the form's required css/js resources asynchronously. For XHTML strict compliance, the css include files and style tag sections are appended to the head tag. This example file demonstrates how two functions - renderHead and renderBody - can be used to load these css/js resources synchronously. One of the benefits of this approach is that the form's stylesheet is loaded before any markup is generated, which eliminates the visual delay that can occur when the render function is invoked.

  • Option #0
  • Option #1
  • Option #2
  •  
0
Processing