« first day (2715 days earlier)      last day (2229 days later) » 

1:33 PM
@TomJNowell can you purge all those comments. Also, my issue is how far should I go with wordpress till I go to full react. For example, I could build an API call of all categories since categories would be used as the navigation. By what I'm gathering from your comments is build the header and footer in WP and use React to fill the body. I might be over analyzing it in regards to permalinks and how would those work.
 
 
1 hour later…
2:55 PM
@DᴀʀᴛʜVᴀᴅᴇʀ when I say the header, I'm talking in a <head> sense, not a Logo bar with a menu sense
 
everything that is visually seen in the browser can be react
or not be react, it's just an implementation detail
and there's already react powered frontends out there that are in WP themes
why are you building a a frontend entirely in React anyway
 
getting into apps and wanted to re-build a few site playgrounds in WP and React. That way it will help me learn React more by using it
 
 
1 hour later…
4:26 PM
@MichaelEcklund Are you running ucwords() on all of your questions' titles? :P
 
lol no
I'm done now though
I was reformatting titles, formulating some as questions, adding tags, correcting anything real obvious in the body... like. code, lists, bolding colons, typos, etc.
 
For a moment I thought it's a bot. Man you were fast!
 
no, ya i just sat down and cranked it out. Was trying to get 80 edits for another badge. System hasn't given it to me yet!
 
Ya it takes a while. I don't know how to get the Peer Pressure badge though. Need 3 volunteers to downvote one of my questions :P
 
No cheating!
 
4:31 PM
I'm going to lose 6 rep here, I'm the one who is being cheated on.
 
You have to earn it, not get it handed to you on a bronze platter.
 
cheater cheater
 
Cheater caught on tape!
Does anyone use composer to include something like Redux into their themes? I'm not sure how necessary is it to import a FontAwesome using npm when your project is like a kindergarten website with 10 views per day.
 
hmmm composer isn't known for its JS libraries
I'd use NPM
 
4:46 PM
Would using npm matter if you were the only developer of this small project?
 
if it makes your life easier
it might be that the only file that makes it into the theme is a jacks.bundle.js
just don't commit your node_modules folder, commit the npm package lock file instead
 
I always leave those for caching plugins. Autoptimize does the same with 1 click.
 
meh why waste CPU cycles in production when you can pre-package in advance
i'm not a huge fan of plugins that do things like that, better to have Nginx serve them in their final form as fast as possible
ttfb ftw
i used to compile my LESS stylesheets with WP LESS so I could insert PHP variables and dynamically recompile
but I switched since it was adding time and complexity to page generation, and I didn't really need that feature
 
I didn't think of resources as an issue since they were all like a bunch of 1MB themes. But will definitely try npm and composer once.
 
it's a small overhead, but it is overhead, and mostly impacts that initial first load and time to first byte, rather than successive page loads
that and if the plugin ever breaks it's a pain, i know it'll work because i've prepackaged it
it does mean I need to spend a bit of time on the build step but I usually copy the same webpack/babel setup over anyway to save time
 
 
3 hours later…
7:37 PM
@TomJNowell, does core support http/2 push? from what the code describes it should, from what it does I am not sure at all.
 

« first day (2715 days earlier)      last day (2229 days later) »