Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Dmacleo Posted August 5, 2012 Posted August 5, 2012 when running speed and optimization tests one thing I see mentioned often is combining js files into one. has anyone done that with IP Board and what are the pitfalls I should expect if I try it?
Grumpy Posted August 6, 2012 Posted August 6, 2012 IP.B does that for you if you enable the minify option.
Grumpy Posted August 7, 2012 Posted August 7, 2012 If you want, you can run the minify. save the output js and css to your computer. Then reupload that file as a static js/css files like minified.js into your template. Then load those js files instead of default ones. This method will support all cdns. But, will break the automatic changes. Alternatively, you can use a cdn that's compatible with minify.
Dmacleo Posted August 7, 2012 Author Posted August 7, 2012 i'll take a look at that. there are only one or 2 places I have issues with minify too so it may be a theme setting I should check too before ruling out running it.
Marcher Technologies Posted August 7, 2012 Posted August 7, 2012 If you want, you can run the minify. save the output js and css to your computer. Then reupload that file as a static js/css files like minified.js into your template. Then load those js files instead of default ones. This method will support all cdns. But, will break the automatic changes. Alternatively, you can use a cdn that's compatible with minify. that will not work, ipb presents js files as needed. No single page in IPB anywhere loads all of it, and apps add their own.
Grumpy Posted August 7, 2012 Posted August 7, 2012 that will not work, ipb presents js files as needed. No single page in IPB anywhere loads all of it, and apps add their own. Then, they can just add all the css/js into the minify query line and then save it. xD ---------------------- Or Just switch to a cdn that actually supports queries... Which one are you using that it doesn't support it? I want to add it to my blacklist...
Marcher Technologies Posted August 7, 2012 Posted August 7, 2012 Then, they can just add all the css/js into the minify query line and then save it. xD and install a new app? I'm just saying its not really feasible, in the end you would have to recompile that on every application uses a js module's install, and said single file would be massive.
Grumpy Posted August 7, 2012 Posted August 7, 2012 and install a new app? I'm just saying its not really feasible, in the end you would have to recompile that on every application uses a js module's install, and said single file would be massive. Indeed, it is a lot of manual labor if you switch around a lot. I think a single large js/css file is the intent of this topic though.
Marcher Technologies Posted August 7, 2012 Posted August 7, 2012 Indeed, it is a lot of manual labor if you switch around a lot. I think a single large js/css file is the intent of this topic though. The way the js modules are written, when the document loads they init their events/handlers, as in this runs a rather HEAVY chance of conflicts and code looking for things that are not there, and latching onto selectors they are not meant to, or multiple js handlers attaching themselves to the same selectors, and barring all of that with perfectly written javascript, useless inits called on page load. Content jquery manages this only because the init is always called from the block template.
Dmacleo Posted August 7, 2012 Author Posted August 7, 2012 don't have the specifics in front of me but some tests I had been running (different ones) all listed 4 or 5 to combine into one. mostly (iirc) shadowbox (I use than not lightbox) and promenu. nothing on the content pages, mostly forum index. where I had never tried it just researching. thinking on it though I may (initially at least) be better off implementing shadowbox in a different manner.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.