Quick Nav:  Online Store   |   Login | Register

5 external js files (Shouldn't I end up with 1)

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Paul Meyer
<20 Posts
Posts:2


06/21/2008 8:19 PM  

Hi,

I'm testing PageBlaster on a default install of DNN 4.8.4 on IIS 6 and after setting it up just like in the docs I still end up with 5 external .js files (down from 9 to start with).  Shouldn't I just be getting 1?

Here are the js files I'm left with:

js[script removed]http://dev2003/WebResource.axd?...7/6/2008gzip283.5K (15.2K) 
js[script removed]http://dev2003/js/dnn.js7/6/2008gzip685.7K (20.8K) 
js[script removed]http://dev2003/ScriptResource.axd?...7/6/2008gzip3120.6K (83.5K) 
js[script removed]http://dev2003/ScriptResource.axd?...7/6/2008gzip186.4K (29.1K) 
js[script removed]http://dev2003/DesktopModules/Snapsis/PageBlaster/Cache/JS/22d364d2fe056310f192e6a8d3c8ef37.js.axd7/6/2008gzip39510.8K (48.6K)

 

I did remove the module that had the book links to amazon as it had its own js.

Thanks,


Paul

 

John Mitchell
Posts:3276


06/22/2008 9:07 AM  

Hi Paul,
WebResource.axd and ScriptResource.axd are not merged with the .js files since they are virtual files. WebResource.axd could also be something other than JS. PageBlaster does make those into physical files and caches and compresses them though.
I may be able to merge in the JS from those files in a latter version of PageBlaster but it is really tricky for the reasons mentioned above.

Also, any .js file that is not in the Head section of the page is not merged in. I do notice that your dnn.js file is compressed though, so I am wondering if it is being compressed by PageBlaster. There are replacement rules that move some of the other .JS files to the head so that they will be merged. Maybe something is excluding the dnn.js file if it did get moved. You can find out by turning on the trace log for PageBlaster.

If the JS file resides on an external system (starts with http:// in the link), then it will also be ignored. I do have plans to pull those in local, and save them as a static file, but it is the same problem as with the virtual files having to do all that in one request.

Paul Meyer
<20 Posts
Posts:2


06/22/2008 9:01 PM  

Hi John,

Thanks for the reply.

Here is what I get in the trace log after clearing the cache and restarting the application:

 

6/22/2008 4:20:57 PM : PB:RequestController:GetCachedRequest
Request not found in memory cache:
Url: http://dev2003/js/dnn.js
Key: dfb6923e7439c4465e70c1f2b6f6702e.pb.webinfo
6/22/2008 4:20:57 PM : PB:RequestController:IsExcludedFrom
Request Is Excluded:
Path=http://dev2003/js/dnn.js
ExcludeFrom=Replacements ExcludePattern=\.js$|\.css$|\.html$
6/22/2008 4:20:57 PM : PB:Compression
Compressing content: Encoding=gzip, Ratio=72.5%
6/22/2008 4:20:57 PM : PB:RequestController:UpdateRequestCache
Request added to Disk Cache:
Size=11237
FilePath=C:\Inetpub\dev2003.dnn.com\DesktopModules\Snapsis\PageBlaster\Cache\js\dfb6923e7439c4465e70c1f2b6f6702e.pb.webinfo,
Url=http://dev2003/js/dnn.js
6/22/2008 4:20:57 PM : PB:RequestController:UpdateRequestCache
Request added to Memory Cache:
Key=dfb6923e7439c4465e70c1f2b6f6702e.pb.webinfo
Url=http://dev2003/js/dnn.js

I attached my config file and the complete trace for requesting a blank page with no modules.


Attachment: 162211983271.zip

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > 5 external js files (Shouldn't I end up with 1)



ActiveForums 3.7
Powered by: Snapsis Software