Re: Have themes use CDNs for YUI, JQuery, Bootstrap?
For themes I think CDN usage is fine. Not sure about the Roller UI itself tho. - Dave On Mon, Jul 7, 2014 at 10:28 PM, Glen Mazza glen.ma...@gmail.com wrote: Hi team, I had given a suggested JIRA to Gaurav: https://issues.apache.org/ jira/browse/ROL-2020 for him to factor out the Bootstrap/JQuery into the webapps/roller-ui folder so multiple themes can take advantage of it, i.e. the user wouldn't need to manually import that library with his theme. Providing that option would probably still make sense. I guess though I am behind the times with that suggestion, apparently our themes should be using content delivery networks to download the libraries instead of the server hosting Roller? YUI would be something like: http://yui.yahooapis.com/3.17.2/build/cssreset/cssreset-min.css, JQuery would be http://code.jquery.com/, Bootstrap would be: http://www.bootstrapcdn.com/. Apparently the main benefit of using CDN's is that it drops demand on the server hosting Roller, making it cheaper for someone to get Roller hosted and also making it more attractive for hosting companies to offer Roller. However, a drawback is YUI doesn't offer SSL support for philosophical reasons (http://yuilibrary.com/yui/docs/tutorials/faq/#does- yahoos-cdn-support-ssl) That might not be a big deal for us, because the blog reader doesn't need SSL as he's not sending any private data and even if the blog owner uses SSL to keep his password encrypted on the wire, not much else needs to be secure so going to the CDN for a few JavaScript libraries wouldn't be a big deal. I guess we'll continue storing the Javascript libraries that the themes need, but in the future would it be a better design to have the themes using CDNs? WDYT? Regards, Glen
Re: Have themes use CDNs for YUI, JQuery, Bootstrap?
OK, I guess the Roller UI should be self-contained, i.e., include all the scripts it needs, no CDN. Assuming a 1-to-100 server bandwidth ratio between blog writing and blog reading, that's not much of a server hit for the former to have its needed scripts packaged with Roller, eliminates a second point of failure, and helps us get approval from security analysts evaluating Roller for an office deployment. For our prepackaged blog themes, either way is fine for me. I think for 5.1 we'll continue to make the JS/CSS available within Roller for those who prefer that, independent of whether the themes are coded to use those files or CDNs. Including the JS/CSS does have a benefit of allowing people to hack Roller in areas where they might not have wifi access. Glen On 07/08/2014 07:53 AM, Dave wrote: For themes I think CDN usage is fine. Not sure about the Roller UI itself tho. - Dave On Mon, Jul 7, 2014 at 10:28 PM, Glen Mazza glen.ma...@gmail.com wrote: Hi team, I had given a suggested JIRA to Gaurav: https://issues.apache.org/ jira/browse/ROL-2020 for him to factor out the Bootstrap/JQuery into the webapps/roller-ui folder so multiple themes can take advantage of it, i.e. the user wouldn't need to manually import that library with his theme. Providing that option would probably still make sense. I guess though I am behind the times with that suggestion, apparently our themes should be using content delivery networks to download the libraries instead of the server hosting Roller? YUI would be something like: http://yui.yahooapis.com/3.17.2/build/cssreset/cssreset-min.css, JQuery would be http://code.jquery.com/, Bootstrap would be: http://www.bootstrapcdn.com/. Apparently the main benefit of using CDN's is that it drops demand on the server hosting Roller, making it cheaper for someone to get Roller hosted and also making it more attractive for hosting companies to offer Roller. However, a drawback is YUI doesn't offer SSL support for philosophical reasons (http://yuilibrary.com/yui/docs/tutorials/faq/#does- yahoos-cdn-support-ssl) That might not be a big deal for us, because the blog reader doesn't need SSL as he's not sending any private data and even if the blog owner uses SSL to keep his password encrypted on the wire, not much else needs to be secure so going to the CDN for a few JavaScript libraries wouldn't be a big deal. I guess we'll continue storing the Javascript libraries that the themes need, but in the future would it be a better design to have the themes using CDNs? WDYT? Regards, Glen
Re: Roller UI Ideas (Was Re: ApacheCon CFP closes June 25)
On 07/03/2014 02:17 AM, Gaurav Saini wrote: Correct, it looks odd that for new blogger it will not show the tag cloud. Rather than removing we can put a condition that if more than 5 tags comes than we can show that complete box/panel of hot tags. Oh, I didn't realize a tag cloud will appear if there are enough tags. Yes, great idea, show it as a unit--either desc+cloud or neither. Please note, all of the open JIRAs are good to get fixed--feel free to assign to yourself and then work on whichever ones interest you once you get commit access. As we're nearing a release though, try to avoid major commits (things that can't be tested well before committing but we'd want to run with for a few weeks to make sure nothing fails) or partial commits that would put the application in an unreleasable state. Regards, Glen