Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: css before js

css before js 5 years 5 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:
$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.
Time to create page: 0.204 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form