Tagged: benchmark, benchmarking, character count, code count, line count, performance
-
AuthorPosts
-
-
July 23, 2016 at 8:52 AM #12537
davidself1001-gmail.com
ParticipantI am having a strange problem. I have around 1800 lines of code in a code block and it is crashing my page (ie the sidebar disappears). but if i split the code up and make it into 2 blocks it works. Is there a linecount limit for a code block?
-
July 23, 2016 at 12:37 PM #12538
Damian Baker
ParticipantHi David,
This is a great question, and we would need to do some additional benchmarking tests for character count within a single code block.
On average, it is about 40 lines per kB, so 1800 lines would equate to around 45kB.We have performed benchmarking tests for how many total code blocks and how many pages/posts that the CJT plugin can handle. Once we investigate this further and learn its limitations, we will let you know.
Thinking further about this, maybe a benchmark page could be a good idea to have on the CJT website. 🙂
Thanks.Regards,
Damian Baker -
August 3, 2016 at 8:22 AM #12540
davidself1001-gmail.com
Participanti resolved the problem. I had my js code and my html code in the same block. I split them into 2 blocks and resolved it. I do have an additional question though. How do i go about wp_enqueue_script for my jquery dependencies when i use your tool? And for that matter how do in wp_enqueue_script my js code from the blocks?
-
August 13, 2016 at 9:22 PM #12544
Damian Baker
ParticipantHi David,
I apologise for the delay as I have been travelling the past few weeks.
Glad to hear you resolved the problem, which makes perfect sense.As for your additional questions, let me investigate this further with my colleague and I will try to get some answers for you soon.
Regards,
Damian Baker
-
-
AuthorPosts
- You must be logged in to reply to this topic.