Reputation
247
Next privilege 250 Rep.
View close votes
Badges
2 11
Impact
~8k people reached

Sep
23
asked How ( and mostly at what time ) can i prevent the alternate cron from running?
Sep
19
asked How to get the permalink of a page when loading my plugin
Aug
15
accepted How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
Aug
2
answered wp_update_post call really slow when official Facebook plugin is installed
Aug
1
asked wp_update_post call really slow when official Facebook plugin is installed
Jul
22
comment I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
@Otto maybe it's because i didn't explain fully my problem :). I generate my CSS with less, and i'm giving to the end user the possibility to change the value of some variables. After the variables are changed, i recompile the Css and store it somewhere ( APC if present, file-system or db ) and so i must generate the CSS in the way i wrote in my question. So it's 4.000 lines of CSS. Do you have a better way to do this?
Jul
20
accepted I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
Jul
20
comment I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
@Otto i totally agrre with the answer provided here, the solution is to get caching right, not putting 4.000 CSS lines inline. And this would be true even with 500 lines of CSS.
Jul
20
revised I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
added 9 characters in body
Jul
20
comment I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
@Otto but in this way i couldn't cache the CSS, right?
Jul
19
comment I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
Actually i'm working on a plugin so i would have to make some checks to see if etags are on or off. Do you think that there is no performance gain in pointing to a single file?So that i do not have to bootstrap Wordpress just to grab the CSS?
Jul
19
asked I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
Jul
17
comment Using wp-cron in backpress - problems with wp_remote_post, fsockopen error
HAve you fixed this?I have the same problem and i need this to work both with cUrl and streams, because it's possible that people doesn't have cUrl installed
Jun
29
comment Has anyone used require.js for handling plugin scripts?
I found some resources, there are some options available, it depends on how you are structuring your app, take a look here requirejs.org/docs/faq-advanced.html#rename
Jun
29
comment Has anyone used require.js for handling plugin scripts?
Just to know, how do you handle the possibility that another plugin might use requirejs?
Jun
22
awarded  Commentator
Jun
22
comment Has anyone used require.js for handling plugin scripts?
I'me almost done with the refactoring and i'm quite happy about it. I managed to load jQuery and do not touch wordpress version, in this way my plugin use my version of jQuery and it's totally indipendent from the wordpress version it's running on.
Jun
6
comment How to add defer=“defer” tag in plugin javascripts?
This is perfect also to use with data-main in requirejs
Jun
5
comment Has anyone used require.js for handling plugin scripts?
@goldenapples requirejs should handle multiple version of jQuery with a few lines of code leaving the orginal jQuery intact. After that there should be nothing to worry about as everything i loaded into anonymous function and i'm loading everything i need, and of course i would rely on wordpress api only to load the main.js file. But i was asking if anyone else did it because maybe this is a terrible idea
Jun
5
asked Has anyone used require.js for handling plugin scripts?