warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1005 is not allowed to access /tmp owned by uid 0 in /var/www/sites/sugree/codenone.com/subdomains/www/html/includes/file.inc on line 190.
warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1005 is not allowed to access /tmp owned by uid 0 in /var/www/sites/sugree/codenone.com/subdomains/www/html/includes/file.inc on line 190.
ผมก็ใช้ครับ dojo ใช้มาตั้งแต่ 0.3xx
แต่ว่าใช้เฉพาะในส่วน IO อย่างเดียว
พวก widget อะไรไม่เคยใช้ครับ
(เหมือนมาให้ความหวังแล้วก็จากไปเลยแฮะ)
ผมใช้ widget บางส่วน กับ lfx บางส่วน
load ตอนแรก ก็ช้าหน่อย แต่ครั้งถัดๆไป พอ browser cache แล้ว
ก็ ok นี่ครับ
ลองทำ custom build เลือกเอาเฉพาะที่ใช้ หรือยังครับ
ไม่แน่ใจว่าจะลดขนาดได้แค่ไหน เพราะส่วน widget ค่อนข้างจะใหญ่
ที่ server (ถ้าเป็น apache) ควรจะติดตั้ง mod_deflate ด้วย
ตัวนี้ช่วยลดขนาดได้เยอะเลย
ไม่ทราบว่าการ custom build มีวิธีการอย่างไรครับ
ยังไม่เข้าใจครับ ขอให้อธิบายเพิ่มเติมนิดหนึ่งได้ไหมครับ
ส่วนของ ติดตั้ง mod_deflate คงไม่ได้เพราะ เช่าserver
ของ ksc นะครับ แล้ว server ก็เป็น IIS นะครับ
การทำ custom build ต้องเริ่มจากการกำหนด profile ก่อน
โดย profile ก็คือการกำหนด module ที่เราต้องการ include ไว้ใน custom dojo.js ของเรา
ตัวอย่าง profile ที่ผมใช้
จากนั้นก็ใช้ ant ในการ build
ant -Dprofile=myprofile clean releaseอ่านรายละเอียดในนี้ดีที่สุด
http://dojotoolkit.org/book/dojo-book-0-4/part-6-customizing-dojo-builds...
Note: ที่พูดมานี่ เป็น version 0.4, 0.3 นะครับ
version 0.9 ผมยังไม่ได้ดูเลย
ขอบคุณครับ