• Author
    Posts
  • #12537

    I 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?

  • #12538

    Damian Baker
    Participant

    Hi 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

  • #12540

    i 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?

  • #12544

    Damian Baker
    Participant

    Hi 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

You must be logged in to reply to this topic.