Forums
View unanswered posts | View active topics It is currently Fri Oct 24, 2014 12:05 pm



Reply to topic  [ 2 posts ] 
 Extract only what you need from main pie.js 
Author Message

Joined: Tue Nov 29, 2011 1:26 am
Posts: 38
Post 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.


Tue Jul 31, 2012 6:10 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1446
Post 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.


Wed Aug 01, 2012 9:43 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.