But the PIE.attach call is likely to be the biggest delay here. If you have a *lot* of elements this applies to, you might just have to look for other solutions. e.g. we recently dropped the PIE linear gradients on a website because the stupid design had them on every menu item on a big drop-down menu and an equally big expanding side menu; the DirectX filters gave us the same linear gradients without the performance hit.

Mon Nov 07, 2011 3:33 pm

xem

Joined: Thu Apr 07, 2011 3:23 amPosts: 73

Re: Attach PIE.js automatically on elements with CSS3 proper

Thanks for your advice webaware

My goal wasn't really to cover cases of huge pages with lots of Pie's elements, I just want to automate the process of PIE attachment to any element needing it.

You're right about the non-use of jQuery, and about the more efficient use of other fixes than PIE in particular cases.

Anyway, I'm going to try your code. I'll post an updated version here if it works!

Fri Nov 18, 2011 9:14 am

guugie

Joined: Fri Nov 18, 2011 12:14 pmPosts: 1

Re: Attach PIE.js automatically on elements with CSS3 proper

Very nice script. Thank you very much, will use it on my current project, right now

Fri Nov 18, 2011 12:22 pm

xem

Joined: Thu Apr 07, 2011 3:23 amPosts: 73

Re: Attach PIE.js automatically on elements with CSS3 proper

No problem, it's here to be shared (and enhanced by people that know Javascript better than me ^^)

Who is online

Users browsing this forum: No registered users and 1 guest

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