Gaz
 Posts:10
Send PM:
 | | 05 Nov 2009 05:07 AM | | Hi,
I have installed Pageblaster to one of our DNN sites running version 05.01.02 (51). This is on a Windows Server 2008 machine running IIS 7 and SQL 2008.
We have quite a few external .js files and .css files so I though this would be the ideal module to merge them them together. The install went fine but when looking at yslow it is still showing the same amount of external js and css files, the speed of the site seems to have stayed the same as well.
The URL of the site is: www.theccwire.com
I have attached a few sections of the web.config
Any help/advice would be much appreciated :o)
Thanks
Gaz
|
| | |
|
|
|
John Mitchell
 Posts:4350
Administrator Send PM:
 | | 05 Nov 2009 12:48 PM | | Make sure you are not excluding the merge process in the Snapsis.PageBlaster.config file. |
| | |
|
Gaz
 Posts:10
Send PM:
 | | 09 Nov 2009 10:04 AM | | Hi John,
I have checked the pageblaster.config file and the merge process has not been excluded.
It seems that the reason the site is so slow is because of all the .js files so merging them all is vital.
G |
| | |
|
John Mitchell
 Posts:4350
Administrator Send PM:
 | | 10 Nov 2009 09:20 AM | | Please zip up your Snapsis.PageBlaster.config and Web.config file (after removing sensitive info) and attach them. |
| | |
|
Gaz
 Posts:10
Send PM:
 | | 12 Nov 2009 07:56 AM | | Sorry about the delay in getting back to you. I have attached both config files for you.
Thanks again for your help.
G |
Attachment: config.zip
| | |
|
Gaz
 Posts:10
Send PM:
 | | 17 Nov 2009 04:31 AM | | Hi John, did you manage to take a look at my config files. The website is running extremely slow www.theccwire.com since I have added pageblaster. |
| | |
|
Snapsis Staff Posts:239
Send PM:
 | | 17 Nov 2009 09:32 AM | | The Merge process is being excluded with these two lines: <path pattern="\.js$" excludeFrom="MergeJS" /> <path pattern="\.css$" excludeFrom="MergeCSS" />
Comment or remove those lines in the SNapsis.PageBlaster.config to enable merging of CSS & JS.
You can also try removing the comments from this line if the site is still slow: <!--<path pattern="(Web|Script)Resource" excludeFrom="All" />--> |
| | |
|
Gaz
 Posts:10
Send PM:
 | | 19 Nov 2009 04:53 AM | | I have commented out the merge process and the site then fails to load. I think I need to create the appropriate settings for IIS7 but am unsure how to do this as you're instructions are for IIS6.
Would it be possible to to explain how to set this up with IIS7? |
| | |
|
John Mitchell
 Posts:4350
Administrator Send PM:
 | | 19 Nov 2009 08:12 AM | | If you edit the Snapsis.PageBlaster.config file and the site fails to load, then there must be an error in the config file making (not valid xml).
I'll update the post for enabling the static file handler for IIS7, but that is something above and beyond the Merge process. |
| | |
|
Gaz
 Posts:10
Send PM:
 | | 24 Nov 2009 04:23 AM | | Hi John,
Would it be possible to make a post about how to enable the static file handler for IIS7, I'm sure it would help a few others out as well :)
Thanks in advance. |
| | |
|
John Mitchell
 Posts:4350
Administrator Send PM:
 | | 24 Nov 2009 01:11 PM | | Hi Gaz, There is a good tutorial here: http://learn.iis.net/page.aspx/508/wildcard-script-mapping-and-iis-7-integrated-pipeline/
Let me know if you have questions and it'll help me to create the PageBlaster specific tutorial. |
| | |
|
Gaz
 Posts:10
Send PM:
 | | 24 Nov 2009 05:48 PM | | Thanks John, thats a help. So rather than add a wildcard I would add my .js and .css instead? |
| | |
|
John Mitchell
 Posts:4350
Administrator Send PM:
 | | 24 Nov 2009 06:28 PM | | You could do it with a wildcard.
Actually, I have been working with IIS7 today and you don't really need to configure it in IIS manager. You can just un-comment the PageBlasterHandler in the system.webServer node of your web.config.
|
| | |
|
Gaz
 Posts:10
Send PM:
 | | 24 Nov 2009 06:37 PM | | ok, just done that.
So snapsis config file has this: <excludePaths> <path pattern="(/admin/|/host/|install)" excludeFrom="All" /> <path pattern="ctl[/=](edit|module|tab)" excludeFrom="Replacements" /> <path pattern="\.js$|\.css$|\.html$" excludeFrom="Replacements" /> <!--Comment or remove the next two exclude paths to further optimize DNN JS & CSS files <path pattern="\.js$" excludeFrom="MergeJS" /> <path pattern="\.css$" excludeFrom="MergeCSS" />--> <!--Uncomment the next line if you have trouble with post-backs or Ajax--> <!--<path pattern="(Web|Script)Resource" excludeFrom="All" />--> </excludePaths>
and web.config.. this..
<add name="StaticFile" path="*" verb="*" type="" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" scriptProcessor="" resourceType="Either" requireAccess="Read" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" /> <add name="PageBlasterHandler" verb="*" path="*.css,*.js" type="Snapsis.HttpModules.PageBlaster.StaticFileHandler, Snapsis.HttpModules.PageBlaster" preCondition="managedHandler" /> </handlers>
But the site loads like this....
www.theccwire.com
:( |
| | |
|
Gaz
 Posts:10
Send PM:
 | | 24 Nov 2009 06:41 PM | | Still lots of JS and CSS files.. See image http://img230.imageshack.us/img230/7954/picture2vk.png
Sorry to be a pain but I really don't understand why this isn't working. |
| | |
|