[ 2 posts ]

Preston Lytton

  • Username: Preston
  • Joined: Fri May 27, 2011 7:12 am
  • Posts: 5
  • Offline
  • Profile

combo.php? not loading modules from my server

Post Posted: Fri Aug 24, 2012 8:42 am
+0-
I have come at this from many different angles and have run out of options so...

I want to use combo.php to server files from my server. To get this working I have tried this all ways (that I can think of)...

First to verify the speed enhancement on load of our site using combo service I set up the YUI Loader Util. to use the Yahoo CDN combo services, definite improvement.

So then I installed the phploader my_site/phploader/
metadata and yui library located my_site/lib/2.9.0/build/* + my_site/lib/meta/
I have also tried placing the yui modules in my_site/phploader/lib/2.9.0/build and my_site/phploader/2.9.0/build
The combo.php and loader.php are in my_site/phploader/

I configured the $loader with these settings
Code:
<?PHP
   include("phploader/loader.php");
   $loader = new YAHOO_util_Loader("2.9.0");
   $loader->combine = true;
        $loader->base = "lib/";
   $loader->comboBase = "phploader/combo.php?";
   $loader->load ("autocomplete","calendar","carousel","containercore","datatable","event-delegate","event-mouseenter","history","json","paginator","selector");
?>


the setting $loader->base I have tried many different file paths. I have tried different locations of the yui mods as well as hard coding the file path in combo.php. none have worked.

I get it to the point that the yui mods are loaded into a combo.php?2.9.0/build/...&2.9.0/build... url but the yui mods don't load only 14bytes are transferred (just the url). It appears that all is working but the combo.php can't locate the yui modules.

would love to find a solution, thanks

Preston Lytton

  • Username: Preston
  • Joined: Fri May 27, 2011 7:12 am
  • Posts: 5
  • Offline
  • Profile

Re: combo.php? not loading modules from my server

Post Posted: Fri Aug 24, 2012 10:46 am
+0-
a little more info may help. with the php code in place here is the combo module request that only downloads 13KB...
Code:
http://www.my_site.com/phploader/combo.php?2.9.0/build/utilities/utilities.js&2.9.0/build/datasource/datasource-min.js&2.9.0/build/autocomplete/autocomplete-min.js&2.9.0/build/calendar/calendar-min.js&2.9.0/build/event-mouseenter/event-mouseenter-min.js&2.9.0/build/selector/selector-min.js&2.9.0/build/event-delegate/event-delegate-min.js&2.9.0/build/carousel/carousel-min.js&2.9.0/build/container/container_core-min.js&2.9.0/build/paginator/paginator-min.js&2.9.0/build/datatable/datatable-min.js&2.9.0/build/history/history-min.js&2.9.0/build/json/json-min.js

I have kept the yuiloader utlility code to init the modules loaded but have commented out the load modules part to keep them from loading without combo handling. here is that code...
Code:
var loader = new YAHOO.util.YUILoader({
   //require: ["autocomplete","calendar","carousel","containercore","datatable","event-delegate","event-mouseenter","history","json","paginator","selector"],
   //loadOptional: true,
   //base: 'lib/2.9.0/build',
   onSuccess: function() {
      //logic for the components you just loaded.
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum