CSS3 PIE Forums

Extract only what you need from main pie.js
Page 1 of 1

Author:  rulernature [ Tue Jul 31, 2012 6:10 am ]
Post subject:  Extract only what you need from main pie.js

Hello fellows,
I'm wondering if is possible to extract only the script that I need to use on my app from main pie.js. For ex I have a page with 120 input [type="text"] fields and if I want to apply some round corners for each input the page is loaded in 7 seconds.
Will be nice to be splitted in sections. section 1:round corners, section 2: box-shadow. etc :) and if I want to use only round corners to load only that roundCornersScript.js instead all pie.js.

Author:  jason [ Wed Aug 01, 2012 9:43 am ]
Post subject:  Re: Extract only what you need from main pie.js

Splitting up the JS file isn't going to help you much unfortunately. The real cost is in rendering -- 120 elements is going to be slow even if only the border-radius code is executing.

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group