The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: css before js

css before js 1 year 10 months ago #62934

  • Diamens
  • Diamens's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
inserted before the css and after the js to optimize the loading:
example:
$header.= ">\n\t<head>\n"
. $css_header
. "<link href=\"".$rooturl."/scripts/jquery/css/start/jquery-ui.css\" media=\"all\" type=\"text/css\" rel=\"stylesheet\" />"
. "<link href=\"".$rooturl."/scripts/jquery/css/start/lime-progress.css\" media=\"all\" type=\"text/css\" rel=\"stylesheet\" />"
. "<script type=\"text/javascript\" src=\"".$rooturl."/scripts/jquery/jquery.js\"></script>\n"
. "<script type=\"text/javascript\" src=\"".$rooturl."/scripts/jquery/jquery-ui.js\"></script>\n"
. $js_header;

also template.css before



replace spaces with tabs in php code to reduce script size.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.208 seconds
Donation Image